Fixes vnf create failure even if all parameters are supplied

This commit adds code to fix the issue where vnf creation fails even
if all the parameter values are supplied for the get_input parameters
in VNFD template. The code was not properly handling the scenario
where a certain non-vdu section may not have been parameterized in the
VNFD template

Change-Id: I459b0d4104cafeda6c26c5223e571f76cb5300da
Closes-Bug: #1501910
This commit is contained in:
Vishwanath Jayaraman 2015-10-01 16:53:51 -05:00 committed by vishwanath jayaraman
parent 6be322e69f
commit caee775836
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class DeviceHeat(abstract_driver.DeviceAbstractDriver):
@log.log
def _update_params(self, original, paramvalues, match=False):
for key, value in original.iteritems():
if not isinstance(value, dict):
if not isinstance(value, dict) or 'get_input' not in str(value):
pass
elif isinstance(value, dict):
if not match: