Tacker server throws exception when member action contains UPDATE string.
When an update operation is executed, like,
$> tacker --debug vim-update --description "test" VIM0
Exception will happen by calling this method by a non admin user.
...
tacker.api.v1.resource return (attribute_name in
target[attributes.ATTRIBUTES_TO_UPDATE] and
tacker.api.v1.resource KeyError: 'attributes_to_update'
...
Closes-Bug:
@@ -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,
