Get rid of extra trailing space in log messages

This commit is contained in:
Toshio Kuratomi 2016-03-23 08:00:33 -07:00
parent e42bb8df6c
commit 917da92e2b

View file

@ -1497,9 +1497,9 @@ class AnsibleModule(object):
arg_val = str(arg_val)
elif isinstance(arg_val, unicode):
arg_val = arg_val.encode('utf-8')
msg.append('%s=%s ' % (arg, arg_val))
msg.append('%s=%s' % (arg, arg_val))
if msg:
msg = 'Invoked with %s' % ''.join(msg)
msg = 'Invoked with %s' % ' '.join(msg)
else:
msg = 'Invoked'