Wait until inventory is fully deleted in silent_delete

This commit is contained in:
Alan Rominger 2021-07-13 07:50:58 -04:00
parent 486d6688e1
commit 3e6cbd5114
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -96,6 +96,11 @@ class Inventory(HasCopy, HasCreate, HasInstanceGroups, HasVariables, base.Base):
poll_until(_wait, interval=1, timeout=60)
def silent_delete(self):
r = super(Inventory, self).silent_delete()
self.wait_until_deleted()
return r
def update_inventory_sources(self, wait=False):
response = self.related.update_inventory_sources.post()
source_ids = [entry['inventory_source'] for entry in response if entry['status'] == 'started']