Skip to content

Instantly share code, notes, and snippets.

Created April 20, 2015 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4f8a83713880645426bc to your computer and use it in GitHub Desktop.
Save anonymous/4f8a83713880645426bc to your computer and use it in GitHub Desktop.
elif cfg.CONF.keystone_authtoken.auth_version == '3':
client = v3_client
try:
kc = client.Password(
auth_url=cfg.CONF.keystone_authtoken.auth_uri,
username=cfg.CONF.keystone_authtoken.admin_user,
password=cfg.CONF.keystone_authtoken.admin_password,
project_name=cfg.CONF.keystone_authtoken.admin_tenant_name,
user_domain_name='default',
project_domain_name='default'
)
_SESSION = session.Session(auth=kc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment