Browse Source

Add exception log for stack preview

TripleO uses stack preview for deploy preparation tasks.
When there is a error in SoftwareConfig template, 'config'
results in null, without any debug or error message. Adding
log message to identify such errors easily.

Change-Id: I5700e091336fa11c7edcdd575ee27f0a49639ff8
changes/66/683766/1
Saravanan KR 2 years ago
parent
commit
14b14dcfc7
  1. 2
      heat/engine/api.py

2
heat/engine/api.py

@ -312,6 +312,8 @@ def format_resource_properties(resource):
try:
return resource.properties[prop]
except (KeyError, ValueError):
LOG.exception("Error in fetching property %s of resource %s" %
(prop, resource.name))
return None
return dict((prop, get_property(prop))

Loading…
Cancel
Save