Make sure to assign pyrax.cloudservers to cs. Fixes #8250
This commit is contained in:
parent
67899d95fd
commit
938d5f210e
1 changed files with 2 additions and 1 deletions
|
@ -155,7 +155,8 @@ def rax_asg(module, cooldown=300, disk_config=None, files={}, flavor=None,
|
|||
|
||||
au = pyrax.autoscale
|
||||
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 '
|
||||
'typically indicates an invalid region or an '
|
||||
'incorrectly capitalized region name.')
|
||||
|
|
Loading…
Reference in a new issue