fix str format error due to missing '%' in sysctl module
This commit is contained in:
parent
b8676203b9
commit
7495095496
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ class SysctlModule(object):
|
|||
thiscmd = "%s -w %s=%s" % (self.sysctl_cmd, token, value)
|
||||
rc,out,err = self.module.run_command(thiscmd)
|
||||
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:
|
||||
return rc
|
||||
|
||||
|
|
Loading…
Reference in a new issue