From 9d684c9e8e527a39e747d194ec79cb08ea88d59b 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 --- library/cloud/rax_clb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/cloud/rax_clb b/library/cloud/rax_clb index 404f6891407..76564db59cb 100644 --- a/library/cloud/rax_clb +++ b/library/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)