cluster: STABLE3 - fencing: fix fence_a, fence_l, ...

Fabio M. Di Nitto fabbione at fedoraproject.org
Tue Oct 20 04:06:08 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f6369316fa0c27cb68defc4e6d187f45dd86b5da
Commit:        f6369316fa0c27cb68defc4e6d187f45dd86b5da
Parent:        5a0b6533337a009890d64446a35279dc7c58ea39
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Mon Oct 19 22:43:14 2009 +0200
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Tue Oct 20 05:34:17 2009 +0200

fencing: fix fence_a, fence_l, ...

Removing last 3 characters is okay for testing (fence_lpar.py) but not
for production (fence_lpar -> fence_l)
---
 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 05f15b5..e30a87a 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -410,7 +410,7 @@ def metadata(avail_opt, options, docs):
 	sorted_list.sort(lambda x, y: cmp(x[1]["order"], y[1]["order"]))
 
 	print "<?xml version=\"1.0\" ?>"
-	print "<resource-agent name=\"" + os.path.basename(sys.argv[0])[:-3] + "\" shortdesc=\"" + docs["shortdesc"] + "\" >"
+	print "<resource-agent name=\"" + os.path.basename(sys.argv[0]) + "\" shortdesc=\"" + docs["shortdesc"] + "\" >"
 	print "<longdesc>" + docs["longdesc"] + "</longdesc>"
 	print "<parameters>"
 	for option, value in sorted_list:


More information about the cluster-commits mailing list