Add changed condition (#66230)

pull/66784/head
Fred-sun 6 years ago committed by Zim Kalinowski
parent a1f6c611b7
commit f1ec48429a

@ -251,6 +251,9 @@ 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
if response['peering_state'] == 'Disconnected':
to_be_updated = True
else:
to_be_updated = self.check_update(response) to_be_updated = self.check_update(response)
else: else:

Loading…
Cancel
Save