Advertisement
Guest User

Untitled

a guest
Apr 5th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import sys
  2. from openstack import connection
  3. conn = connection.Connection(auth_url="url", username="user", password="pw", project_name="name", user_domain_id="default", project_domain_id="default")
  4.  
  5. token = conn.authorize()
  6.  
  7. # This could be another app, the same one, etc.
  8. another_conn = connection.Connection(auth_url="url", token=token, auth_plugin="token")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement