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
This commit is contained in:
Saravanan KR 2019-09-21 13:02:00 +05:30
parent 73f2cdef7a
commit 14b14dcfc7
1 changed files with 2 additions and 0 deletions

View File

@ -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))