1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #5672 from simonz05/patch-1

fix str format error due to missing '%' in sysctl module
This commit is contained in:
Michael DeHaan 2014-01-17 14:19:48 -08:00
commit 0afa0b4aed

View file

@ -181,7 +181,7 @@ class SysctlModule(object):
thiscmd = "%s -w %s=%s" % (self.sysctl_cmd, token, value) thiscmd = "%s -w %s=%s" % (self.sysctl_cmd, token, value)
rc,out,err = self.module.run_command(thiscmd) rc,out,err = self.module.run_command(thiscmd)
if rc != 0: if rc != 0:
self.module.fail_json(msg='setting %s failed: %s' (token, out + err)) self.module.fail_json(msg='setting %s failed: %s' % (token, out + err))
else: else:
return rc return rc