[verify] Fix obtaining project id

While porting rally to use latest workflow of keystoneclient & keystoneauth,
we forgot to fix 2 places with obtaining project_id in wrong way.

Change-Id: I79f900f6e18ce6a527d4b957dfe8fb760ae5ec10
This commit is contained in:
Andrey Kurilin 2016-09-03 00:03:56 +03:00
parent 54f809745f
commit be5ed73c9c

View File

@ -205,12 +205,10 @@ def main():
clients.nova().flavors.delete(flavor.id)
LOG.info("Creating a shared network.")
tenant_name = clients.keystone().tenant_name
tenant_id = clients.keystone().get_project_id(tenant_name)
net_body = {
"network": {
"name": "shared-net-%s" % str(uuid.uuid4()),
"tenant_id": tenant_id,
"tenant_id": clients.keystone.auth_ref.project_id,
"shared": True
}
}