Fix cannot show the VNFFGD template

There is the wrong index of the vnffgd data in the code.

Change-Id: I72050c8afa8f549a4ac35036ccd969b14d5f3f81
Closes-Bug: #1750865
This commit is contained in:
Nguyen Hai 2018-02-22 02:13:30 +09:00
parent c5eb5c319f
commit 82c70bd5a1
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: