Gitweb:
http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=597e16...
Commit: 597e1607dbc9594954aa015ff05a279c22d35673
Parent: 40e606b7196d9f870ec5a3241a735b31d90d58a2
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Mon Jul 14 11:33:25 2014 +0200
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Mon Jul 14 11:33:25 2014 +0200
fencing: 'nodename' should not be logged as ignored argument
nodename is send by default, so there is not reason to log it.
---
fence/agents/lib/fencing.py.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index 44d7565..d1d5aae 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -614,7 +614,9 @@ def process_input(avail_opt):
(name, value) = (line + "=").split("=", 1)
value = value[:-1]
- if avail_opt.count(name) == 0:
+ if avail_opt.count(name) == 0 and name in ["nodename"]:
+ continue
+ elif avail_opt.count(name) == 0:
logging.warning("Parse error: Ignoring unknown option '%s'\n",
line)
continue