diff --git a/tackerclient/tacker/v1_0/__init__.py b/tackerclient/tacker/v1_0/__init__.py index 4231bbe6..da151d7d 100644 --- a/tackerclient/tacker/v1_0/__init__.py +++ b/tackerclient/tacker/v1_0/__init__.py @@ -412,6 +412,7 @@ class CreateCommand(TackerCommand, show.ShowOne): api = 'servicevm' resource = None log = None + remove_output_fields = [] def get_parser(self, prog_name): parser = super(CreateCommand, self).get_parser(prog_name) @@ -442,6 +443,9 @@ class CreateCommand(TackerCommand, show.ShowOne): if info: print(_('Created a new %s:') % self.resource, file=self.app.stdout) + for f in self.remove_output_fields: + if f in info: + info.pop(f) else: info = {'': ''} return zip(*sorted(info.iteritems())) diff --git a/tackerclient/tacker/v1_0/vm/vnf.py b/tackerclient/tacker/v1_0/vm/vnf.py index 03366b98..5c0f2eba 100644 --- a/tackerclient/tacker/v1_0/vm/vnf.py +++ b/tackerclient/tacker/v1_0/vm/vnf.py @@ -42,6 +42,7 @@ class CreateVNF(tackerV10.CreateCommand): """create a VNF.""" resource = _VNF + remove_output_fields = ["attributes"] def add_known_arguments(self, parser): parser.add_argument( diff --git a/tackerclient/tacker/v1_0/vm/vnfd.py b/tackerclient/tacker/v1_0/vm/vnfd.py index c6d1a8fc..ca4c06c5 100644 --- a/tackerclient/tacker/v1_0/vm/vnfd.py +++ b/tackerclient/tacker/v1_0/vm/vnfd.py @@ -42,6 +42,7 @@ class CreateVNFD(tackerV10.CreateCommand): """create a VNFD.""" resource = _VNFD + remove_output_fields = ["attributes"] def add_known_arguments(self, parser): parser.add_argument(