From 9d9465156e340eba2b8dbeaa79dd7140462a2546 Mon Sep 17 00:00:00 2001 From: Trinath Somanchi Date: Sat, 1 Apr 2017 14:41:16 +0530 Subject: [PATCH] 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' ... Change-Id: I35d5173e9c5c25c7d544e9909da1fbcec931e6b5 Closes-Bug: #1676074 --- tacker/api/v1/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tacker/api/v1/base.py b/tacker/api/v1/base.py index 3dd3ee350..7f1c340db 100644 --- a/tacker/api/v1/base.py +++ b/tacker/api/v1/base.py @@ -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,