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

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=60216578dc037040f9056115cabdbde89a6b94c9
Commit:        60216578dc037040f9056115cabdbde89a6b94c9
Parent:        7921652993e6ed57ff473ecd81ab45677a8cf2cc
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:26:48 2009 +0100

[FENCING] 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:41 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:41 cluster: STABLE3 - [FENCING] 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).