Gitweb:
http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=b06d38...
Commit: b06d381452aa739e47682644bfea80ef1b834bcb
Parent: 043791cfd1dbf5cb0cc9e2ddfe3a39029942e365
Author: Marek 'marx' Grac <mgrac(a)redhat.com>
AuthorDate: Thu Feb 27 15:37:12 2014 +0100
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Thu Feb 27 15:37:12 2014 +0100
fencing: All defaults values are translated to strings
Previously, we defaults were not translated to strings before printing metadata but
as we wish to replace a special characters, defaults have to be strings.
---
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 4f59694..576140e 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -495,7 +495,7 @@ def metadata(avail_opt, options, docs):
elif options.has_key("-" + all_opt[option]["getopt"][:-1]):
if options["-" + all_opt[option]["getopt"][:-1]]:
try:
- default = options["-" + all_opt[option]["getopt"][:-1]]
+ default = str(options["-" + all_opt[option]["getopt"][:-1]])
except TypeError:
## @todo/@note: Currently there is no clean way how to handle lists
## we can create a string from it but we can't set it on command line