Skip to content

Commit b8b683a

Browse files
authored
After executing the deletion of virtual hub connection, wait for the result processing of LROPoller to complete (#2022)
1 parent d6d7d0d commit b8b683a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/modules/azure_rm_virtualhubconnection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ def delete_resource(self):
477477
response = self.network_client.hub_virtual_network_connections.begin_delete(resource_group_name=self.resource_group,
478478
virtual_hub_name=self.vhub_name,
479479
connection_name=self.name)
480+
if isinstance(response, LROPoller):
481+
self.get_poller_result(response)
480482
except Exception as e:
481483
self.log('Error attempting to delete the VirtualHub connection instance.')
482484
self.fail('Error deleting the VirtualHub connection instance: {0}'.format(str(e)))

0 commit comments

Comments
 (0)