Gitweb:
http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: 12db46382b4807b67076104b725adf9d9bb4d900
Parent: dbf856abb9f162c75a01ea3add308920434ef6c9
Author: Lon Hohberger <lhh(a)redhat.com>
AuthorDate: Mon Feb 28 15:46:58 2011 -0500
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Fri Mar 18 15:33:42 2011 +0100
fence-agents: Accept other values for "true"
Resolves: rhbz#679502
Signed-off-by: Lon Hohberger <lhh(a)redhat.com>
---
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 65f88da..4e5eb18 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -603,7 +603,7 @@ def process_input(avail_opt):
if all_opt[name]["getopt"].endswith(":"):
opt["-"+all_opt[name]["getopt"].rstrip(":")] = value
- elif ((value == "1") or (value.lower() == "yes")):
+ elif ((value == "1") or (value.lower() == "yes") or (value.lower()
== "on") or (value.lower() == "true")):
opt["-"+all_opt[name]["getopt"]] = "1"
return opt