Skip to content

Commit

Permalink
Merge pull request canonical#9 from jacekn/master
Browse files Browse the repository at this point in the history
Fix canonical#7 (trusty python-novaclient compatibilty problem)
  • Loading branch information
jjo authored Mar 28, 2017
2 parents e34e187 + ea08659 commit 3127482
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions prometheus-openstack-exporter
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,19 @@ class DataGatherer(Thread):
"auth_url": env['OS_AUTH_URL'],
"region_name": env['OS_REGION_NAME']
}
creds_nova = {
"username": env['OS_USERNAME'],
"api_key": env['OS_PASSWORD'],
"auth_url": env['OS_AUTH_URL'],
"region_name": env['OS_REGION_NAME']
}
creds_nova = [
2,
env['OS_USERNAME'],
env['OS_PASSWORD'],
env['OS_TENANT_NAME'],
env['OS_AUTH_URL'],
]

while True:
start_time = time()
try:
keystone = keystone_client.Client(**creds)
# lp#1233492
creds_nova["tenant_id"] = keystone.tenant_id
nova = nova_client.Client(2, **creds_nova)
nova = nova_client.Client(*creds_nova)
neutron = neutron_client.Client(**creds)

prodstack['tenants'] = [x._info for x in keystone.tenants.list()]
Expand Down

0 comments on commit 3127482

Please sign in to comment.