tenant_id to project_id in server show

The result of 'server show VM_NAME' command shows tenant_id
instead of project_id. All openstack components are moving
from 'tenant' to 'project' naming when we are talking about
openstack projects.

Change-Id: I50053b72e79e1ff3167fa573728da1a81a8e5ed8
Closes-Bug: #1417614
This commit is contained in:
Marcos Fermin Lobo 2015-02-03 16:26:21 +01:00 committed by Steve Martinelli
parent b131692007
commit 0cc3955f0a

View File

@ -88,6 +88,10 @@ def _prep_server_detail(compute_client, server):
{'properties': utils.format_dict(info.pop('metadata'))} {'properties': utils.format_dict(info.pop('metadata'))}
) )
# Migrate tenant_id to project_id naming
if 'tenant_id' in info:
info['project_id'] = info.pop('tenant_id')
# Remove values that are long and not too useful # Remove values that are long and not too useful
info.pop('links', None) info.pop('links', None)