move where optional for_str is inserted

This commit is contained in:
jesopo 2019-09-20 13:39:33 +01:00
parent 72649a90c2
commit 208eb9cd47

View file

@ -212,7 +212,7 @@ class Module(ModuleManager.BaseModule):
if name_override:
for_str = " for %s" % name_override
if result.result == ConfigResults.Changed:
event["stdout"].write("Config '%s' %sset to %s" %
event["stdout"].write("Config '%s'%s set to %s" %
(setting, for_str, result.data))
elif result.result == ConfigResults.Retrieved:
event["stdout"].write("%s%s: %s" % (setting, for_str,