diff options
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index 9384c422..30e356e8 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -497,7 +497,8 @@ class DeployPlugin(cliapp.Plugin): metadata_path = os.path.join( system_tree, 'baserock', 'deployment.meta') with morphlib.savefile.SaveFile(metadata_path, 'w') as f: - f.write(json.dumps(metadata, indent=4, sort_keys=True)) + json.dump(metadata, f, indent=4, + sort_keys=True, encoding='unicode-escape') return system_tree except Exception: shutil.rmtree(system_tree) |