Blob Blame History Raw
From de46962a4f4204570a6d2d7d7bf70794d33ec902 Mon Sep 17 00:00:00 2001
From: Marek 'marx' Grac <mgrac@redhat.com>
Date: Mon, 29 Jun 2015 21:01:46 +0200
Subject: [PATCH] fence_mpath: Fix --sudo-path

---
 fence/agents/mpath/fence_mpath.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fence/agents/mpath/fence_mpath.py b/fence/agents/mpath/fence_mpath.py
index 1dc3a20..6992dc7 100644
--- a/fence/agents/mpath/fence_mpath.py
+++ b/fence/agents/mpath/fence_mpath.py
@@ -8,7 +8,7 @@ import logging
 import atexit
 sys.path.append("@FENCEAGENTSLIBDIR@")
 from fencing import fail_usage, run_command, atexit_handler, check_input, process_input, show_docs
-from fencing import fence_action, all_opt, run_delay
+from fencing import fence_action, all_opt, run_delay, SUDO_PATH
 
 #BEGIN_VERSION_GENERATION
 RELEASE_VERSION=""
@@ -80,7 +80,7 @@ def run_cmd(options, cmd):
 	ret = {}
 
 	if options.has_key("--use-sudo"):
-		prefix = options["--sudo-path"] + " "
+		prefix = SUDO_PATH + " "
 	else:
 		prefix = ""
 
-- 
1.9.3