Blame SOURCES/bz1022533-invalid_use_of_options-2.patch

d67cb5
commit 38373e3be9ceedd877ce6c02a88acf059f9f9d42
d67cb5
Author: Marek 'marx' Grac <mgrac@redhat.com>
d67cb5
Date:   Sun Oct 20 17:06:08 2013 +0200
d67cb5
d67cb5
    fence_drac5: Fix test used for Dell DRAC CMC
d67cb5
    
d67cb5
    In version 4.x the '--module-name' was renamed to standard '--plug'. This patch
d67cb5
    reflects it.
d67cb5
d67cb5
diff --git a/fence/agents/drac5/fence_drac5.py b/fence/agents/drac5/fence_drac5.py
d67cb5
index 2e9a8d3..1b16733 100644
d67cb5
--- a/fence/agents/drac5/fence_drac5.py
d67cb5
+++ b/fence/agents/drac5/fence_drac5.py
d67cb5
@@ -112,8 +112,8 @@ By default, the telnet interface is not  enabled."
d67cb5
 	conn = fence_login(options)
d67cb5
 
d67cb5
 	if conn.before.find("CMC") >= 0:
d67cb5
-		if 0 == options.has_key("--module-name") and 0 == ["monitor", "list"].count(options["--action"].lower()):
d67cb5
-			fail_usage("Failed: You have to enter module name (-m)")
d67cb5
+		if 0 == options.has_key("--plug") and 0 == ["monitor", "list"].count(options["--action"].lower()):
d67cb5
+			fail_usage("Failed: You have to enter module name (-n)")
d67cb5
 			
d67cb5
 		options["model"] = "DRAC CMC"
d67cb5
 	elif conn.before.find("DRAC 5") >= 0: