mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
update format of string in disabled msg
This commit is contained in:
parent
7690e5b008
commit
15f24b42b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user