Always include credentials for heat stack create.

Change-Id: I32cdfd5811dc03fe5cd441df46173e5739f1adc3
This commit is contained in:
Steve Baker 2013-06-25 11:16:40 +12:00
parent 6bf3d6397c
commit ee2c68740c
1 changed files with 8 additions and 1 deletions

View File

@ -59,7 +59,14 @@ class OrchestrationClient(rest_client.RestClient):
post_body['template_url'] = template_url
body = json.dumps(post_body)
uri = 'stacks'
resp, body = self.post(uri, headers=self.headers, body=body)
# Password must be provided on stack create so that heat
# can perform future operations on behalf of the user
headers = dict(self.headers)
headers['X-Auth-Key'] = self.password
headers['X-Auth-User'] = self.user
resp, body = self.post(uri, headers=headers, body=body)
return resp, body
def get_stack(self, stack_identifier):