Skip to content

Commit 0cc3955

Browse files
Marcos Fermin LoboSteve Martinelli
authored andcommitted
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
1 parent b131692 commit 0cc3955

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎openstackclient/compute/v2/server.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ def _prep_server_detail(compute_client, server):
8888
{'properties': utils.format_dict(info.pop('metadata'))}
8989
)
9090

91+
# Migrate tenant_id to project_id naming
92+
if 'tenant_id' in info:
93+
info['project_id'] = info.pop('tenant_id')
94+
9195
# Remove values that are long and not too useful
9296
info.pop('links', None)
9397

0 commit comments

Comments
 (0)