From 71537536009d7a0af2468056cf8bbb6b821ff4db Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 7 Nov 2013 10:46:50 -0600 Subject: [PATCH] If you try to delete a balancer that isn't there, don't blow up --- cloud/rax_clb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud/rax_clb b/cloud/rax_clb index 404f6891407..76564db59cb 100644 --- a/cloud/rax_clb +++ b/cloud/rax_clb @@ -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)