Merge "Tacker server throws exception when member action contains UPDATE string."

This commit is contained in:
Jenkins
2017-04-11 00:53:00 +00:00
committed by Gerrit Code Review

View File

@@ -452,6 +452,8 @@ class Controller(object):
orig_obj = self._item(request, id, field_list=field_list,
parent_id=parent_id)
orig_obj.update(body[self._resource])
attribs = attributes.ATTRIBUTES_TO_UPDATE
orig_obj[attribs] = body[self._resource].keys()
try:
policy.enforce(request.context,
action,