Gitweb:
http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=38373e...
Commit: 38373e3be9ceedd877ce6c02a88acf059f9f9d42
Parent: 1db6440eb38789bcb59451cb8adb39f2084f9443
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Sun Oct 20 17:06:08 2013 +0200
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Mon Oct 21 12:45:09 2013 +0200
fence_drac5: Fix test used for Dell DRAC CMC
In version 4.x the '--module-name' was renamed to standard '--plug'. This
patch
reflects it.
---
fence/agents/drac5/fence_drac5.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fence/agents/drac5/fence_drac5.py b/fence/agents/drac5/fence_drac5.py
index 2e9a8d3..1b16733 100644
--- a/fence/agents/drac5/fence_drac5.py
+++ b/fence/agents/drac5/fence_drac5.py
@@ -112,8 +112,8 @@ By default, the telnet interface is not enabled."
conn = fence_login(options)
if conn.before.find("CMC") >= 0:
- if 0 == options.has_key("--module-name") and 0 == ["monitor",
"list"].count(options["--action"].lower()):
- fail_usage("Failed: You have to enter module name (-m)")
+ if 0 == options.has_key("--plug") and 0 == ["monitor",
"list"].count(options["--action"].lower()):
+ fail_usage("Failed: You have to enter module name (-n)")
options["model"] = "DRAC CMC"
elif conn.before.find("DRAC 5") >= 0: