Merge "Fix cannot show the VNFFGD template"

This commit is contained in:
Zuul 2018-03-17 00:43:36 +00:00 committed by Gerrit Code Review
commit 2ddc24c60e
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class ShowTemplateVNFFGD(tackerV10.ShowCommand):
template = None
data = self.get_data(parsed_args)
try:
attributes_index = data[0].index('attributes')
attributes_index = data[0].index('template')
attributes_json = data[1][attributes_index]
template = jsonutils.loads(attributes_json).get('vnffgd', None)
except (IndexError, TypeError, ValueError) as e: