Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=c6d8c625c... Commit: c6d8c625c33451990473fef5ee735b18e28cdad1 Parent: 801d4575bff12924ae6ab56d4148e81a9e1cedd4 Author: Marek 'marx' Grac mgrac@redhat.com AuthorDate: Mon Jul 1 14:49:18 2013 +0200 Committer: Marek 'marx' Grac mgrac@redhat.com CommitterDate: Mon Jul 1 14:49:18 2013 +0200
fencing: --command-prompt option was useless because user cannot prepare list on command line
User input is automatically translated into list. --- fence/agents/lib/fencing.py.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py index 89b1385..097c167 100644 --- a/fence/agents/lib/fencing.py.py +++ b/fence/agents/lib/fencing.py.py @@ -904,6 +904,9 @@ def fence_login(options): if (options.has_key("eol") == False): options["eol"] = "\r\n"
+ if options.has_key("--command-prompt") and type(options["--command-prompt"]) is not list: + options["--command-prompt"] = [ options["--command-prompt"] ] + ## Do the delay of the fence device before logging in ## Delay is important for two-node clusters fencing but we do not need to delay 'status' operations if options["--action"] in ["off", "reboot"]: