Commit 26e46754 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Fix typo in server_create

parent 556d5f15
...@@ -524,7 +524,7 @@ class server_create(_CycladesInit, OptionalOutput, _ServerWait): ...@@ -524,7 +524,7 @@ class server_create(_CycladesInit, OptionalOutput, _ServerWait):
self._flavor_exists(flavor_id=self['flavor_id']) self._flavor_exists(flavor_id=self['flavor_id'])
self._image_exists(image_id=self['image_id']) self._image_exists(image_id=self['image_id'])
if ce.status in (404, 400, 409): if ce.status in (404, 400, 409):
for net in self['network_configuration']: for net in self['network_configuration'] or []:
self._network_exists(network_id=net['uuid']) self._network_exists(network_id=net['uuid'])
if 'fixed_ip' in net: if 'fixed_ip' in net:
self._ip_ready(net['fixed_ip'], net['uuid'], ce) self._ip_ready(net['fixed_ip'], net['uuid'], ce)
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