summaryrefslogtreecommitdiff
path: root/heatclient/common
diff options
context:
space:
mode:
Diffstat (limited to 'heatclient/common')
-rw-r--r--heatclient/common/template_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/heatclient/common/template_utils.py b/heatclient/common/template_utils.py
index 9e9c85b..b38710b 100644
--- a/heatclient/common/template_utils.py
+++ b/heatclient/common/template_utils.py
@@ -198,6 +198,9 @@ def deep_update(old, new):
if isinstance(v, collections.Mapping):
r = deep_update(old.get(k, {}), v)
old[k] = r
+ elif v is None and isinstance(old.get(k), collections.Mapping):
+ # Don't override empty data, to work around yaml syntax issue
+ pass
else:
old[k] = new[k]
return old