Fix UnboundlocalError in translator.py 83/34383/1
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Tue, 6 Mar 2018 17:48:40 +0000 (09:48 -0800)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Tue, 6 Mar 2018 17:51:23 +0000 (09:51 -0800)
Defined and initialized variable nested in the scope

Change-Id: Idfffc95490f8a11dd0377a8e50a4737e708ecfc7
Issue-ID: OPTFRA-163
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
conductor/conductor/controller/translator.py

index 62c965e..45eab8d 100644 (file)
@@ -707,6 +707,7 @@ class Translator(object):
         for operand in operands:
             weight = 1.0
             args = None
+            nested = False
 
             if operand.keys() == ['distance_between']:
                 # Value must be a list of length 2 with one