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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def instance_region():
    return xenbus_read("vm-data/provider_data/region")
        


src/s/e/serverondemand-0.0.2/serverondemand/resources/demand_done.py   serverondemand(Download)
    my_id = instance_id()
except NameError:
    from serverondemand.xen import instance_id, instance_region
    my_id = instance_id()
 
tenant = r.json()['access']['token']['tenant']['name']
 
server_url = 'https://%s.servers.api.rackspacecloud.com/v2/%s/servers/%s' % (instance_region(), tenant, my_id)
headers = {'x-auth-token': token}
requests.delete(server_url, headers = headers)