Skip to content

Commit

Permalink
Merge pull request ansible#5672 from simonz05/patch-1
Browse files Browse the repository at this point in the history
fix str format error due to missing '%' in sysctl module
  • Loading branch information
mpdehaan committed Jan 17, 2014
2 parents b867620 + 7495095 commit 0afa0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/system/sysctl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0afa0b4

Please sign in to comment.