def destroy_snapshot_wait(cls, snapshot): """delete snapshot, wait until it ceases to exist.""" snapshot.delete() def _update(): snapshot.update(validate=True) wait.wait_exception(_update)
def destroy_snapshot_wait(cls, snapshot): """delete snaphot, wait until not exists.""" snapshot.delete() def _update(): snapshot.update(validate=True) wait_exception(_update)