mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-07 22:03:09 +00:00
Fixed check mode
Change-Id: I3a7a0b0567ac24fb9433352fdc99022bf366fc6a
This commit is contained in:
@@ -688,10 +688,10 @@ class PortModule(OpenStackModule):
|
||||
elif state == 'present' and port:
|
||||
return bool(self._build_update(port))
|
||||
elif state == 'absent' and port:
|
||||
return False
|
||||
return True
|
||||
else:
|
||||
# state == 'absent' and not port:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user