This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
fence-agents: master - fencing.py: long options correction
- From: Marek GrÃc <marx at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Wed, 21 Jan 2009 15:37:37 +0000 (UTC)
- Subject: fence-agents: master - fencing.py: long options correction
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=25a4a8ed6ac3f46103323e412aff23ffb07ac160
Commit: 25a4a8ed6ac3f46103323e412aff23ffb07ac160
Parent: 2bbb0c85c947c47b878df2b7691bc8a9d1b2200b
Author: Marek 'marx' Grac <mgrac@redhat.com>
AuthorDate: Wed Jan 21 16:26:48 2009 +0100
Committer: Marek 'marx' Grac <mgrac@redhat.com>
CommitterDate: Wed Jan 21 16:36:44 2009 +0100
fencing.py: long options correction
Minor problem with long options, posted by Matthew Kent
---
fence/agents/lib/fencing.py.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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]