If you try to delete a balancer that isn't there, don't blow up
This commit is contained in:
parent
772fbb8d0a
commit
9d684c9e8e
1 changed files with 2 additions and 0 deletions
|
@ -265,6 +265,8 @@ def cloud_load_balancer(module, state, name, meta, algorithm, port, protocol,
|
||||||
attempts = wait_timeout / 5
|
attempts = wait_timeout / 5
|
||||||
pyrax.utils.wait_until(balancer, 'status', ('DELETED'),
|
pyrax.utils.wait_until(balancer, 'status', ('DELETED'),
|
||||||
interval=5, attempts=attempts)
|
interval=5, attempts=attempts)
|
||||||
|
else:
|
||||||
|
instance = {}
|
||||||
|
|
||||||
module.exit_json(changed=changed, balancer=instance)
|
module.exit_json(changed=changed, balancer=instance)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue