fence-agents: master - fencing: fix fence_a, fence_l, ...
Fabio M. Di Nitto
fabbione at fedoraproject.org
Tue Apr 20 13:24:29 UTC 2010
Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commitdiff;h=d3996959c0e397f7710e74f3c96592845ead4ca5
Commit: d3996959c0e397f7710e74f3c96592845ead4ca5
Parent: f29c1ae4a2c57d945e1edd0a8bfe6d2bfc81be39
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 Apr 20 14:27:56 2010 +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 c5485d8..2617492 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -419,7 +419,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