[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] lib/fencing.py long options patch



Recently added long options don't seem to be quite working. Patch
against fencing/master branch included.
-- 
Matthew Kent \ SA \ bravenet.com
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index dfabd28..7b7f8d5 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -317,7 +317,7 @@ def process_input(avail_opt):
 			if o.startswith("--"):
 				for x in all_opt.keys():
 					if all_opt[x].has_key("longopt") and "--" + all_opt[x]["longopt"] == o:
-						opt["-" + all_opt[x]["getopt"]] = dict(old_opt)[o]
+						opt["-" + all_opt[x]["getopt"].rstrip(":")] = dict(old_opt)[o]
 			else:
 				opt[o] = dict(old_opt)[o]
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]