From df46403d8cc893995aca135eb04d22a37ac8983c Mon Sep 17 00:00:00 2001 From: Limor Stotland Date: Tue, 26 May 2015 12:36:44 +0000 Subject: [PATCH] Remove unnecessary validation in update environment form the client Change-Id: Iad4a667f65373cf74eb9d4613a3336fe1d46b90b Closes-Bug: #1457211 --- mistralclient/api/v2/environments.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mistralclient/api/v2/environments.py b/mistralclient/api/v2/environments.py index 03bfcfc1..e983b323 100644 --- a/mistralclient/api/v2/environments.py +++ b/mistralclient/api/v2/environments.py @@ -50,15 +50,6 @@ class EnvironmentManager(base.ResourceManager): name = kwargs.get('name', None) self._ensure_not_empty(name=name) - attrs = kwargs.keys() - attrs.remove('name') - allowed = ['description', 'variables', 'scope'] - disallowed = list(set(attrs) - set(allowed)) - - if disallowed: - raise ValueError('The attributes %s cannot be updated.' % - disallowed) - # Convert dict to text for the variables attribute. if kwargs.get('variables') and isinstance(kwargs['variables'], dict): kwargs['variables'] = json.dumps(kwargs['variables'])