Merge "Use ResourceDefinition API in resource_facade"

This commit is contained in:
Jenkins 2016-05-16 07:47:23 +00:00 committed by Gerrit Code Review
commit 151e9cfd84

View File

@ -566,8 +566,7 @@ class ResourceFacade(function.Function):
if attr == self.METADATA:
return self.stack.parent_resource.metadata_get()
elif attr == self.UPDATE_POLICY:
up = self.stack.parent_resource.t.get('UpdatePolicy', {})
up = self.stack.parent_resource.t._update_policy or {}
return function.resolve(up)
elif attr == self.DELETION_POLICY:
dp = self.stack.parent_resource.t.deletion_policy()
return function.resolve(dp)
return self.stack.parent_resource.t.deletion_policy()