def retrieve_auth_url(endpoint_type="internalURL"):
    version = 'v3' if CONF.use_identity_api_v3 else 'v2.0'
    ctx = context.current()
    if ctx.service_catalog:
        info = urlparse.urlparse(url_for(ctx.service_catalog, 'identity',
                                         endpoint_type))
    else:
        info = urlparse.urlparse(CONF.keystone_authtoken.auth_uri)
    return (info[:2] + (version,)) % "%s://%s/%s"
dataset/ETHPy150Open openstack/sahara/sahara/utils/openstack/base.py/retrieve_auth_url/swapped operands of `%`