'Some implementations need to retry their get_dev.'

def _get_dev_retry_helper(self):

    start_time = time.time()
    device = self._inner_get_dev()
    while (not device):
        LOG.info('Device    allocation    failed.    Will    retry    in    2    seconds.')
        time.sleep(2)
        if ((time.time() - start_time) > MAX_DEVICE_WAIT):
            LOG.warning('Device    allocation    failed    after    repeated    retries.')
            return False
        device = self._inner_get_dev()
    return True
