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:
parent
c5eb5c319f
commit
82c70bd5a1
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user