Merge "Add entity and name attribute to EntityNotFound"

This commit is contained in:
Jenkins 2016-01-28 08:06:43 +00:00 committed by Gerrit Code Review
commit 14aae5032e
1 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,12 @@ class InvalidTemplateReference(HeatException):
class EntityNotFound(HeatException):
msg_fmt = _("The %(entity)s (%(name)s) could not be found.")
def __init__(self, entity=None, name=None, **kwargs):
self.entity = entity
self.name = name
super(EntityNotFound, self).__init__(entity=entity, name=name,
**kwargs)
class PhysicalResourceNameAmbiguity(HeatException):
msg_fmt = _(