fence-agents: RHEL6 - fencing: Fix metadata when "io_fencing" is used
Marek GrĂ¡c
marx at fedoraproject.org
Thu Jul 10 08:39:44 UTC 2014
Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=e8ad210ae1e2b1827ea1176f79baa98cf59f23f6
Commit: e8ad210ae1e2b1827ea1176f79baa98cf59f23f6
Parent: 1aa45f87922cf09ea1d5a378283bce1f4eb43bb6
Author: Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate: Thu Jul 10 10:38:37 2014 +0200
Committer: Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Thu Jul 10 10:38:37 2014 +0200
fencing: Fix metadata when "io_fencing" is used
Previously, io_fencing did not introduce "action" as a parameter into metadata
---
fence/agents/lib/fencing.py.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index eeb0a3f..9d142e8 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -489,7 +489,8 @@ def metadata(avail_opt, options, docs):
print "<parameters>"
for option, value in sorted_list:
if all_opt[option].has_key("shortdesc"):
- print "\t<parameter name=\"" + option + "\" unique=\"0\" required=\"" + all_opt[option]["required"] + "\">"
+ option_name = "action" if option == "io_fencing" else option
+ print "\t<parameter name=\"" + option_name + "\" unique=\"0\" required=\"" + all_opt[option]["required"] + "\">"
default = ""
if all_opt[option].has_key("default"):
More information about the cluster-commits
mailing list