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

If you try to delete a balancer that isn't there, don't blow up

This commit is contained in:
Matt Martz 2013-11-07 10:46:50 -06:00
parent 772fbb8d0a
commit 9d684c9e8e

View file

@ -265,6 +265,8 @@ def cloud_load_balancer(module, state, name, meta, algorithm, port, protocol,
attempts = wait_timeout / 5
pyrax.utils.wait_until(balancer, 'status', ('DELETED'),
interval=5, attempts=attempts)
else:
instance = {}
module.exit_json(changed=changed, balancer=instance)