Revert "Get project_id and user_id when show profile"

This reverts commit 508df27dd3.

The corresponding fix in SDK has not been released.

Change-Id: I21fe5dad0b401672fdde719b8d0adff5fef1e54d
This commit is contained in:
Qiming Teng
2016-12-21 11:12:14 +00:00
parent 508df27dd3
commit 427ff59006
2 changed files with 2 additions and 11 deletions

View File

@@ -100,15 +100,6 @@ class TestProfileShow(TestProfile):
parsed_args = self.check_parser(self.cmd, arglist, [])
self.cmd.take_action(parsed_args)
self.mock_client.get_profile.assert_called_with('my_profile')
profile = self.mock_client.get_profile('my_profile')
self.assertEqual(self.response['profile']['project'],
profile.project_id)
self.assertEqual(self.response['profile']['id'], profile.id)
self.assertEqual(self.response['profile']['metadata'],
profile.metadata)
self.assertEqual(self.response['profile']['name'], profile.name)
self.assertEqual(self.response['profile']['spec'], profile.spec)
self.assertEqual(self.response['profile']['type'], profile.type)
def test_profile_show_not_found(self):
arglist = ['my_profile']

View File

@@ -64,11 +64,11 @@ def _show_profile(senlin_client, profile_id):
'id',
'metadata',
'name',
'project_id',
'project',
'spec',
'type',
'updated_at',
'user_id'
'user'
]
return columns, utils.get_dict_properties(data.to_dict(), columns,
formatters=formatters)