From: Ondrej Mular Date: Fri, 2 May 2014 07:15:49 -0400 (EDT) Subject: [Cluster-devel] [PATCH 1/3] fencing: added option "on_target" In-Reply-To: <1435963968.10026117.1399028821359.JavaMail.zimbra@redhat.com> Message-ID: <1895361801.10028093.1399029349370.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit added option "on_target" for agents that need attribute "on_target" in metadata --- fence/agents/lib/fencing.py.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py index 0539a2f..76c2cd1 100644 --- a/fence/agents/lib/fencing.py.py +++ b/fence/agents/lib/fencing.py.py @@ -370,6 +370,10 @@ all_opt = { "shortdesc" : "Method to fence (onoff|cycle)", "default" : "onoff", "choices" : [ "onoff", "cycle" ], + "order" : 1}, + "on_target": { + "getopt" : "", + "help" : "", "order" : 1} } @@ -521,7 +525,10 @@ def metadata(avail_opt, options, docs): print "" if avail_opt.count("fabric_fencing") == 1: ## do 'unfence' at the start - print "\t" + if avail_opt.count("on_target") == 1: + print "\t" + else: + print "\t" else: print "\t" print "\t" -- 1.8.3.1