Workaround to make extensions variable work with MyPLC 5.0
authorSapan Bhatia <gwsapan@gmail.com>
Fri, 4 Apr 2014 21:34:19 +0000 (17:34 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Fri, 4 Apr 2014 21:34:19 +0000 (17:34 -0400)
source/steps/GetAndUpdateNodeDetails.py

index 5d1acb6..66bfc97 100644 (file)
@@ -125,6 +125,10 @@ def Run( vars, log ):
             'plain'# false if compressed image, true if not
             ]
 
+    # MyPLC 5.0 workaround
+    if (vars['extensions']==''):
+        vars['extensions']=[]
+
     for k in flavour_keys:
         # Support MyPLC <5.2
         if (not vars.has_key(k)):