From 8b127ebff6a38b0c6dd9c2a1ad738e2d7637e0fa Mon Sep 17 00:00:00 2001 From: Marek 'marx' Grac Date: Wed, 22 Jan 2014 13:51:50 +0100 Subject: [PATCH 1/3] fencing: Fabric fence agents should have default action "off" Previously, when you have run fence agent without -o XYZ, reboot was performed. Fabric fence agents do not have them so fence agent fails. This update does not fix only this issue but also text --help and in manual pages. Resolves: rhbz#1021392 --- fence/agents/lib/fencing.py.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py index 9cc7407..889bb04 100644 --- a/fence/agents/lib/fencing.py.py +++ b/fence/agents/lib/fencing.py.py @@ -618,6 +618,10 @@ def check_input(device_opt, opt): else: all_opt["login"]["required"] = "0" + if device_opt.count("fabric_fencing"): + all_opt["action"]["default"] = "off" + all_opt["action"]["help"] = "-o, --action=[action] Action: status, off (default) or on" + ## Set default values ##### for opt in device_opt: -- 1.7.7.6