mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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