1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #8313 from sivel/issue/8250

Make sure to assign pyrax.cloudservers to cs. Fixes #8250
This commit is contained in:
Michael DeHaan 2014-07-28 15:48:51 -04:00
commit f948a94f51

View file

@ -155,7 +155,8 @@ def rax_asg(module, cooldown=300, disk_config=None, files={}, flavor=None,
au = pyrax.autoscale au = pyrax.autoscale
cnw = pyrax.cloud_networks cnw = pyrax.cloud_networks
if not au or not cnw: cs = pyrax.cloudservers
if not au or not cnw or not cs:
module.fail_json(msg='Failed to instantiate clients. This ' module.fail_json(msg='Failed to instantiate clients. This '
'typically indicates an invalid region or an ' 'typically indicates an invalid region or an '
'incorrectly capitalized region name.') 'incorrectly capitalized region name.')