shebags mention python2 explicitly
[bootmanager.git] / source / steps / UpdateNodeConfiguration.py
index 4d16b16..0bb7471 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 #
 # Copyright (c) 2003 Intel Corporation
 # All rights reserved.
@@ -88,9 +88,9 @@ def Run(vars, log):
             except ValueError as e:
                 pass
             
-            update_path_list = update_path_list + map(lambda x: \
-                                                     full_dir_path+"/"+x,
-                                                     slices)
+            update_path_list = update_path_list + \
+                               ["{}/{}".format(full_dir_path, x) for x in slices]
+
         except OSError as e:
             continue