Merge "Fix that remove 'strategy' attribute does not work."

This commit is contained in:
Jenkins
2017-02-15 14:09:08 +00:00
committed by Gerrit Code Review

View File

@@ -333,6 +333,7 @@ class AuditTemplate(base.APIBase):
self.fields.append('goal_id')
self.fields.append('strategy_id')
setattr(self, 'strategy_id', kwargs.get('strategy_id', wtypes.Unset))
# goal_uuid & strategy_uuid are not part of
# objects.AuditTemplate.fields because they're API-only attributes.