Changed tenant_id to project_id

Liberty expects project_id instead of tenant_id

Change-Id: Iba07db9b4de2e23d807b4f5cb3f9c3a268089909
This commit is contained in:
Samuel Cassiba 2015-10-29 20:52:58 -07:00
parent 33133ab738
commit a7ce50ea7a
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def get_stats(user, passwd, tenant, url):
for server in server_list:
flavor = client.flavors.get(int(server.flavor["id"]))
tenant_uuid = keystone.tenants.get(server.tenant_id).name
tenant_uuid = keystone.tenants.get(server.project_id).name
data["%s.tenant.%s.count" % (prefix,tenant_uuid)] += 1
for counter in counters:
data["%s.total.%s" % (prefix,counter)] += int(flavor.__getattribute__(counter))