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:
parent
73f2cdef7a
commit
14b14dcfc7
|
@ -312,6 +312,8 @@ def format_resource_properties(resource):
|
||||||
try:
|
try:
|
||||||
return resource.properties[prop]
|
return resource.properties[prop]
|
||||||
except (KeyError, ValueError):
|
except (KeyError, ValueError):
|
||||||
|
LOG.exception("Error in fetching property %s of resource %s" %
|
||||||
|
(prop, resource.name))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return dict((prop, get_property(prop))
|
return dict((prop, get_property(prop))
|
||||||
|
|
Loading…
Reference in New Issue