From 624c563e4382dc1bd9d0147d328a82fdc109bb5c Mon Sep 17 00:00:00 2001 From: Simon Zimmermann Date: Fri, 17 Jan 2014 22:31:12 +0100 Subject: [PATCH] fix str format error due to missing '%' in sysctl module --- system/sysctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/sysctl b/system/sysctl index 59b92eb6f48..3541a45aee9 100644 --- a/system/sysctl +++ b/system/sysctl @@ -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