fence-agents: master - fencing: Fix minor inconsistencies

Marek GrĂ¡c marx at fedoraproject.org
Sat Nov 24 10:45:56 UTC 2012


Gitweb:        http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=5c3d18b829011267a62564e2e025d2066c9cf07d
Commit:        5c3d18b829011267a62564e2e025d2066c9cf07d
Parent:        0299c52ffbacfe0b916ff326484da677eb5d5b30
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Sat Nov 24 11:44:00 2012 +0100
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Sat Nov 24 11:44:00 2012 +0100

fencing: Fix minor inconsistencies

* integer instead of string
* missing long options for option (--partition)
---
 fence/agents/lib/fencing.py.py |    1 +
 fence/agents/rsb/fence_rsb.py  |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index 3f994b9..61a5052 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -216,6 +216,7 @@ all_opt = {
 		"order" : 1 },
 	"partition" : {
 		"getopt" : "n:",
+		"longopt" : "partition",
 		"help" : "-n <id>                        Name of the partition",
 		"required" : "0",
 		"shortdesc" : "Partition name",
diff --git a/fence/agents/rsb/fence_rsb.py b/fence/agents/rsb/fence_rsb.py
index 100836c..a701156 100755
--- a/fence/agents/rsb/fence_rsb.py
+++ b/fence/agents/rsb/fence_rsb.py
@@ -57,7 +57,7 @@ def main():
 
 	# set default port for telnet only
 	if 0 == opt.has_key("--ssh") and 0 == opt.has_key("--ipport"):
-		opt["--ipport"] = 3172
+		opt["--ipport"] = "3172"
 	options = check_input(device_opt, opt)
 
 	docs = { }


More information about the cluster-commits mailing list