Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from keystoneclient.v2_0 import client
- from credentials import get_nova_creds
- def setup():
- # Get credentials from environment variables
- creds = get_nova_creds()
- # Name the credentials
- username = creds['username']
- password = creds['api_key']
- auth_url = creds['auth_url']
- tenant_name=creds['project_id']
- nova = client.Client(username=username, password=password,
- auth_url=auth_url, tenant_name=tenant_name)
- if __name__ == "__main__":
- nova = setup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement