def _wait_for_snapshot():
    snapshot = self._volume_api.get_snapshot(context, snapshot_id)
    if (snapshot.get('status') != 'creating'):
        self._volume_refresh_connection_info(context, instance, volume_id)
        raise loopingcall.LoopingCallDone()
def _wait_for_snapshot():
    snapshot = self._volume_api.get_snapshot(context, snapshot_id)
    if (snapshot.get('status') != 'creating'):
        self._volume_refresh_connection_info(context, instance, volume_id)
        raise loopingcall.LoopingCallDone()