This commit is contained in:
parent
e5f7a22215
commit
28e39ca42f
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
|
|
||||||
def response_closure(module, question, responses):
|
def response_closure(module, question, responses):
|
||||||
resp_gen = (u'%s\n' % r.rstrip('\n').decode() for r in responses)
|
resp_gen = (u'%s\n' % str(r).rstrip('\n').decode() for r in responses)
|
||||||
|
|
||||||
def wrapped(info):
|
def wrapped(info):
|
||||||
try:
|
try:
|
||||||
|
@ -150,7 +150,7 @@ def main():
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
response = response_closure(module, key, value)
|
response = response_closure(module, key, value)
|
||||||
else:
|
else:
|
||||||
response = u'%s\n' % value.rstrip('\n').decode()
|
response = u'%s\n' % str(value).rstrip('\n').decode()
|
||||||
|
|
||||||
events[key.decode()] = response
|
events[key.decode()] = response
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue