public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* fence-agents: master - fencing.py: long options correction
@ 2009-01-21 15:38 Marek Grác
  0 siblings, 0 replies; only message in thread
From: Marek Grác @ 2009-01-21 15:38 UTC (permalink / raw)
  To: cluster-cvs-relay

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]
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-21 15:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-21 15:38 fence-agents: master - fencing.py: long options correction Marek Grác

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).