diff options
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index 87e129e5..1faad46b 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -524,9 +524,10 @@ class DeployPlugin(cliapp.Plugin): artifact, root_repo_dir, deployment_type, location, env) metadata_path = os.path.join( system_tree, 'baserock', 'deployment.meta') + with morphlib.savefile.SaveFile(metadata_path, 'w') as f: - json.dump(metadata, f, indent=4, - sort_keys=True, encoding='unicode-escape') + json.dump(metadata, f, indent=4, sort_keys=True, + cls=morphlib.util.SafeishJSONEncoder) return system_tree except Exception: shutil.rmtree(system_tree) |