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

reviewable/pr18780/r1
Matt Martz 11 years ago
parent 9a1adb1772
commit 7153753600

@ -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)

Loading…
Cancel
Save