Commit 15675095 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Use of project id attribute in "server create"

parent da004af5
...@@ -120,7 +120,8 @@ def snf_create_server(cls, req, name, image, flavor, **kwargs): ...@@ -120,7 +120,8 @@ def snf_create_server(cls, req, name, image, flavor, **kwargs):
req.environ['service_type'] = 'compute' req.environ['service_type'] = 'compute'
req.environ['method_name'] = 'servers_post' req.environ['method_name'] = 'servers_post'
body = dict(name=name, imageRef=image, flavorRef=flavor) project = req.environ.get('HTTP_X_PROJECT_ID', None)
body = dict(name=name, imageRef=image, flavorRef=flavor, project=project)
body.update(kwargs) body.update(kwargs)
req.environ['kwargs'] = dict(json_data=dict(server=body)) req.environ['kwargs'] = dict(json_data=dict(server=body))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment