|
|
44709c |
From de46962a4f4204570a6d2d7d7bf70794d33ec902 Mon Sep 17 00:00:00 2001
|
|
|
44709c |
From: Marek 'marx' Grac <mgrac@redhat.com>
|
|
|
44709c |
Date: Mon, 29 Jun 2015 21:01:46 +0200
|
|
|
44709c |
Subject: [PATCH] fence_mpath: Fix --sudo-path
|
|
|
44709c |
|
|
|
44709c |
---
|
|
|
44709c |
fence/agents/mpath/fence_mpath.py | 4 ++--
|
|
|
44709c |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
44709c |
|
|
|
44709c |
diff --git a/fence/agents/mpath/fence_mpath.py b/fence/agents/mpath/fence_mpath.py
|
|
|
44709c |
index 1dc3a20..6992dc7 100644
|
|
|
44709c |
--- a/fence/agents/mpath/fence_mpath.py
|
|
|
44709c |
+++ b/fence/agents/mpath/fence_mpath.py
|
|
|
44709c |
@@ -8,7 +8,7 @@ import logging
|
|
|
44709c |
import atexit
|
|
|
44709c |
sys.path.append("@FENCEAGENTSLIBDIR@")
|
|
|
44709c |
from fencing import fail_usage, run_command, atexit_handler, check_input, process_input, show_docs
|
|
|
44709c |
-from fencing import fence_action, all_opt, run_delay
|
|
|
44709c |
+from fencing import fence_action, all_opt, run_delay, SUDO_PATH
|
|
|
44709c |
|
|
|
44709c |
#BEGIN_VERSION_GENERATION
|
|
|
44709c |
RELEASE_VERSION=""
|
|
|
44709c |
@@ -80,7 +80,7 @@ def run_cmd(options, cmd):
|
|
|
44709c |
ret = {}
|
|
|
44709c |
|
|
|
44709c |
if options.has_key("--use-sudo"):
|
|
|
44709c |
- prefix = options["--sudo-path"] + " "
|
|
|
44709c |
+ prefix = SUDO_PATH + " "
|
|
|
44709c |
else:
|
|
|
44709c |
prefix = ""
|
|
|
44709c |
|
|
|
44709c |
--
|
|
|
44709c |
1.9.3
|
|
|
44709c |
|