parent
530fd1365a
commit
5e3249b244
1 changed files with 3 additions and 2 deletions
|
@ -186,6 +186,7 @@ options:
|
||||||
associated with the instance will be deleted along with the instance.
|
associated with the instance will be deleted along with the instance.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
|
version_added: "2.2"
|
||||||
requirements:
|
requirements:
|
||||||
- "python >= 2.6"
|
- "python >= 2.6"
|
||||||
- "shade"
|
- "shade"
|
||||||
|
@ -439,11 +440,11 @@ def _create_server(module, cloud):
|
||||||
if flavor:
|
if flavor:
|
||||||
flavor_dict = cloud.get_flavor(flavor)
|
flavor_dict = cloud.get_flavor(flavor)
|
||||||
if not flavor_dict:
|
if not flavor_dict:
|
||||||
module.fail_json(msg="Could not find flavor %s" % flavor)
|
module.fail_json(msg="Could not find flavor %s" % flavor)
|
||||||
else:
|
else:
|
||||||
flavor_dict = cloud.get_flavor_by_ram(flavor_ram, flavor_include)
|
flavor_dict = cloud.get_flavor_by_ram(flavor_ram, flavor_include)
|
||||||
if not flavor_dict:
|
if not flavor_dict:
|
||||||
module.fail_json(msg="Could not find any matching flavor")
|
module.fail_json(msg="Could not find any matching flavor")
|
||||||
|
|
||||||
nics = _network_args(module, cloud)
|
nics = _network_args(module, cloud)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue