Merge "Fix stack update for Python API"
This commit is contained in:
commit
21b81cc7cc
@ -122,8 +122,7 @@ class StackManager(base.BaseManager):
|
|||||||
def update(self, stack_id, **kwargs):
|
def update(self, stack_id, **kwargs):
|
||||||
"""Update a stack."""
|
"""Update a stack."""
|
||||||
headers = self.client.credentials_headers()
|
headers = self.client.credentials_headers()
|
||||||
method = 'PATCH' if kwargs['existing'] else 'PUT'
|
method = 'PATCH' if kwargs.pop('existing', None) else 'PUT'
|
||||||
del kwargs['existing']
|
|
||||||
resp, body = self.client.json_request(method, '/stacks/%s' % stack_id,
|
resp, body = self.client.json_request(method, '/stacks/%s' % stack_id,
|
||||||
data=kwargs, headers=headers)
|
data=kwargs, headers=headers)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user