From 15f24b42b20975cdf98ec02d11323215ee5911b2 Mon Sep 17 00:00:00 2001 From: nleib Date: Sun, 24 May 2015 11:27:31 +0300 Subject: [PATCH] update format of string in disabled msg --- salt/modules/puppet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/puppet.py b/salt/modules/puppet.py index 8c813e48bd..ced1d0a5b1 100644 --- a/salt/modules/puppet.py +++ b/salt/modules/puppet.py @@ -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