cloudstack: fix state=absent, ip_address not None but falsy (#3483)

This commit is contained in:
René Moser 2016-11-16 22:18:06 +01:00 committed by Matt Clay
parent 318a06f6d6
commit a0c8b598ff

View file

@ -208,8 +208,8 @@ class AnsibleCloudStackIPAddress(AnsibleCloudStack):
def disassociate_ip_address(self):
ip_address = self.get_ip_address()
if ip_address is None:
return ip_address
if not ip_address:
return None
if ip_address['isstaticnat']:
self.module.fail_json(msg="IP address is allocated via static nat")