update format of string in disabled msg

This commit is contained in:
nleib 2015-05-24 11:27:31 +03:00
parent 7690e5b008
commit 15f24b42b2

View File

@ -248,7 +248,7 @@ def disable(message=None):
with salt.utils.fopen(puppet.disabled_lockfile, 'w') as lockfile:
try:
# Puppet chokes when no valid json is found
str = "{{\"disabled_message\":\"{0}\"}}".format(message) if message is not None else '{}'
str = '{{"disabled_message":"{0}"}}'.format(message) if message is not None else '{}'
lockfile.write(str)
lockfile.close()
return True