commit 38373e3be9ceedd877ce6c02a88acf059f9f9d42 Author: Marek 'marx' Grac Date: Sun Oct 20 17:06:08 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. 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: