Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/s/a/sahara-2014.1/sahara/utils/openstack/nova.py   sahara(Download)
def client():
    ctx = context.current()
    auth_url = base.retrieve_auth_url()
    compute_url = base.url_for(ctx.service_catalog, 'compute')
 

src/s/a/sahara-HEAD/sahara/utils/openstack/nova.py   sahara(Download)
def client():
    ctx = context.current()
    auth_url = base.retrieve_auth_url()
    compute_url = base.url_for(ctx.service_catalog, 'compute')
 

src/s/a/sahara-2014.1/sahara/utils/openstack/neutron.py   sahara(Download)
        'tenant_id': ctx.tenant_id,
        'token': ctx.token,
        'endpoint_url': base.url_for(ctx.service_catalog, 'network')
    }
    return neutron_cli.Client('2.0', **args)

src/s/a/sahara-2014.1/sahara/utils/openstack/heat.py   sahara(Download)
def client():
    ctx = context.current()
    heat_url = base.url_for(ctx.service_catalog, 'orchestration')
    return heat_client.Client('1', heat_url, token=ctx.token)
 

src/s/a/sahara-2014.1/sahara/utils/openstack/cinder.py   sahara(Download)
def client():
    ctx = context.current()
    volume_url = base.url_for(ctx.service_catalog, 'volume')
 
    cinder = cinder_client.Client(ctx.username,

src/s/a/sahara-HEAD/sahara/utils/openstack/neutron.py   sahara(Download)
        'tenant_id': ctx.tenant_id,
        'token': ctx.token,
        'endpoint_url': base.url_for(ctx.service_catalog, 'network')
    }
    return neutron_cli.Client('2.0', **args)

src/s/a/sahara-HEAD/sahara/utils/openstack/heat.py   sahara(Download)
def client():
    ctx = context.current()
    heat_url = base.url_for(ctx.service_catalog, 'orchestration')
    return heat_client.Client('1', heat_url, token=ctx.token)
 

src/s/a/sahara-HEAD/sahara/utils/openstack/cinder.py   sahara(Download)
def client():
    ctx = context.current()
    volume_url = base.url_for(ctx.service_catalog, 'volume')
 
    cinder = cinder_client.Client(ctx.username,

src/s/a/sahara-2014.1/sahara/utils/ssh_remote.py   sahara(Download)
            self.instance.node_group.cluster.neutron_management_network
        ctx = context.current()
        neutron_info['uri'] = base.url_for(ctx.service_catalog, 'network')
        neutron_info['token'] = ctx.token
        neutron_info['tenant'] = ctx.tenant_name

src/s/a/sahara-2014.1/sahara/swift/utils.py   sahara(Download)
def _get_service_address(service_type):
    ctx = context.current()
    identity_url = base.url_for(ctx.service_catalog, service_type)
    address_regexp = r"^\w+://(.+?)/"
    identity_host = re.search(address_regexp, identity_url).group(1)

  1 | 2  Next