Add changed condition (#66230)
This commit is contained in:
parent
a1f6c611b7
commit
f1ec48429a
1 changed files with 4 additions and 1 deletions
|
@ -251,7 +251,10 @@ class AzureRMVirtualNetworkPeering(AzureRMModuleBase):
|
||||||
self.fail("Cannot update remote_virtual_network of Virtual Network Peering!")
|
self.fail("Cannot update remote_virtual_network of Virtual Network Peering!")
|
||||||
|
|
||||||
# check if update
|
# check if update
|
||||||
to_be_updated = self.check_update(response)
|
if response['peering_state'] == 'Disconnected':
|
||||||
|
to_be_updated = True
|
||||||
|
else:
|
||||||
|
to_be_updated = self.check_update(response)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# not exists, create new vnet peering
|
# not exists, create new vnet peering
|
||||||
|
|
Loading…
Reference in a new issue