Merge "Do not allow update flavor internal attributes"

This commit is contained in:
Jenkins 2017-08-11 12:41:40 +00:00 committed by Gerrit Code Review
commit 262eea3278
1 changed files with 7 additions and 0 deletions

View File

@ -108,6 +108,13 @@ class FlavorPatchType(types.JsonPatchType):
_api_base = Flavor
@staticmethod
def internal_attrs():
defaults = types.JsonPatchType.internal_attrs()
return defaults + ['/description', '/resources',
'/resource_traits',
'/resource_aggregates']
class FlavorCollection(base.APIBase):
"""API representation of a collection of flavor."""