cloudstack: fix state=absent, ip_address not None but falsy (#3483)
This commit is contained in:
parent
318a06f6d6
commit
a0c8b598ff
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue