fix minor error 69/6769/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 26 Oct 2018 12:54:26 +0000 (14:54 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 26 Oct 2018 12:54:26 +0000 (14:54 +0200)
Change-Id: Id1e90d7e45a78c45d6c1e2720f3688a79d43941d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
n2vc/vnf.py

index a60f36c..e03cca9 100644 (file)
@@ -893,11 +893,11 @@ class N2VC:
         params = {}
         for parameter in parameters:
             param = str(parameter['name'])
+            value = None
 
             # Typecast parameter value, if present
             if 'data-type' in parameter:
                 paramtype = str(parameter['data-type']).lower()
-                value = None
 
                 if paramtype == "integer":
                     value = int(parameter['value'])