

def _runtime_url(url, cluster):
    if (url.startswith(m.MANILA_PREFIX) and cluster):
        path = shares_service.get_share_path(url, (cluster.shares or []))
        if (path is None):
            path = mount_share_at_default_path(url, cluster)
        return 'file://{path}'.format(path=path)
    return url

dataset/ETHPy150Open openstack/sahara/sahara/service/edp/job_utils.py _runtime_url/original