From cc0a66884bedd071d882ea39ad313f826ab95a7b Mon Sep 17 00:00:00 2001 From: Janki Chhatbar Date: Thu, 25 Aug 2016 14:22:29 +0000 Subject: [PATCH] Revert "Creates details API to fetch VNF detials" This reverts commit 5a1f2f5717bc55e196e9006d6891ad077e0e4211. Reverting in account of a new patch [1]. [1]. https://review.openstack.org/#/c/360197/ Change-Id: Iaf5f65bd20bb098120378f9b63c86b97a86df35d --- tackerclient/tacker/v1_0/__init__.py | 8 ++------ tackerclient/v1_0/client.py | 5 ----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/tackerclient/tacker/v1_0/__init__.py b/tackerclient/tacker/v1_0/__init__.py index 7f6eb972..59170fcf 100644 --- a/tackerclient/tacker/v1_0/__init__.py +++ b/tackerclient/tacker/v1_0/__init__.py @@ -671,9 +671,7 @@ class ShowCommand(TackerCommand, show.ShowOne): params = {} if parsed_args.show_details: - method_name = 'show_%s_details' % self.resource - else: - method_name = 'show_%s' % self.resource + params = {'verbose': 'True'} if parsed_args.fields: params = {'fields': parsed_args.fields} if self.allow_names: @@ -682,10 +680,8 @@ class ShowCommand(TackerCommand, show.ShowOne): else: _id = parsed_args.id - obj_shower = getattr(tacker_client, method_name) + obj_shower = getattr(tacker_client, "show_%s" % self.resource) data = obj_shower(_id, **params) - if parsed_args.show_details: - data[self.resource] = data.pop('details')[0] self.format_output_data(data) resource = data[self.resource] if self.resource in data: diff --git a/tackerclient/v1_0/client.py b/tackerclient/v1_0/client.py index 370749b4..bc193258 100644 --- a/tackerclient/v1_0/client.py +++ b/tackerclient/v1_0/client.py @@ -339,7 +339,6 @@ class Client(ClientBase): vnfs_path = '/vnfs' vnf_path = '/vnfs/%s' vnf_scale_path = '/vnfs/%s/actions' - vnf_detail = '/vnfs/%s/details' vims_path = '/vims' vim_path = '/vims/%s' @@ -414,10 +413,6 @@ class Client(ClientBase): def show_vnf(self, vnf, **_params): return self.get(self.vnf_path % vnf, params=_params) - @APIParamsCall - def show_vnf_details(self, vnf, **_params): - return self.get(self.vnf_detail % vnf, params=_params) - @APIParamsCall def create_vnf(self, body=None): return self.post(self.vnfs_path, body=body)