Commit 07fdc00c authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix wrong parameter passing to create_server

Refs: #4339
parent eddaace7
...@@ -331,7 +331,7 @@ class server_create(_init_cyclades, _optional_json, _server_wait): ...@@ -331,7 +331,7 @@ class server_create(_init_cyclades, _optional_json, _server_wait):
@errors.cyclades.flavor_id @errors.cyclades.flavor_id
def _run(self, name, flavor_id, image_id): def _run(self, name, flavor_id, image_id):
r = self.client.create_server( r = self.client.create_server(
name, int(flavor_id), image_id, self['personality']) name, int(flavor_id), image_id, personality=self['personality'])
usernames = self._uuids2usernames([r['user_id'], r['tenant_id']]) usernames = self._uuids2usernames([r['user_id'], r['tenant_id']])
r['user_id'] += ' (%s)' % usernames[r['user_id']] r['user_id'] += ' (%s)' % usernames[r['user_id']]
r['tenant_id'] += ' (%s)' % usernames[r['tenant_id']] r['tenant_id'] += ' (%s)' % usernames[r['tenant_id']]
......
...@@ -84,7 +84,7 @@ class Cyclades(livetest.Generic): ...@@ -84,7 +84,7 @@ class Cyclades(livetest.Generic):
def _create_server(self, servername, flavorid, imageid, personality=None): def _create_server(self, servername, flavorid, imageid, personality=None):
server = self.client.create_server( server = self.client.create_server(
servername, flavorid, imageid, personality) servername, flavorid, imageid, personality=personality)
print('CREATE VM %s (%s)' % (server['id'], server['name'])) print('CREATE VM %s (%s)' % (server['id'], server['name']))
self.servers[servername] = server self.servers[servername] = server
return server return server
......
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