mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
delete subnet should be idempotent (#35037)
This commit is contained in:
committed by
Jordan Borean
parent
e9e85625aa
commit
7c201fc9bc
@@ -254,7 +254,7 @@ class AzureRMSubnet(AzureRMModuleBase):
|
||||
resource_guid=nsg.resource_guid)
|
||||
|
||||
self.results['state'] = self.create_or_update_subnet(subnet)
|
||||
elif self.state == 'absent':
|
||||
elif self.state == 'absent' and changed:
|
||||
# delete subnet
|
||||
self.delete_subnet()
|
||||
# the delete does not actually return anything. if no exception, then we'll assume
|
||||
|
||||
Reference in New Issue
Block a user