commit | c719b5c6e85266d1ea2cdacfd439bd5b3efd5c19 | [log] [tgz] |
---|---|---|
author | Vasyl Saienko <vsaienko@mirantis.com> | Thu Mar 05 19:14:26 2020 +0200 |
committer | Vasyl Saienko <vsaienko@mirantis.com> | Thu Mar 05 19:15:28 2020 +0200 |
tree | d1129eced1b19ab562cdd29c899211ae3a4b0301 | |
parent | e1bea0349228ee6362e9046111935b12907f8099 [diff] [blame] |
Fix empty metadata Related-Prod: PRODX-0000 Change-Id: I87e7bce4f229fd182e4d40bc236f86076ed1083b
diff --git a/de/heat-templates/scripts/prepare-metadata.py b/de/heat-templates/scripts/prepare-metadata.py index 93c4cf5..cd592c4 100644 --- a/de/heat-templates/scripts/prepare-metadata.py +++ b/de/heat-templates/scripts/prepare-metadata.py
@@ -68,6 +68,9 @@ with open(args.metadata_file) as f: metadata = yaml.safe_load(f) + if not metadata: + LOG.info("The metadata is empty") + return node_meta = get_node_metadata(metadata) if node_meta is not None: LOG.info(f"Processing node_metadata: {node_meta}")