oops, one fragment had been oversimplified when porting to python3
authorparmentelat <thierry.parmentelat@inria.fr>
Fri, 14 Dec 2018 12:05:53 +0000 (13:05 +0100)
committerparmentelat <thierry.parmentelat@inria.fr>
Fri, 14 Dec 2018 12:05:53 +0000 (13:05 +0100)
bin/db-config

index 4a01d35..eb936c9 100755 (executable)
@@ -89,7 +89,9 @@ def main():
 
     # Load variables into dictionaries
     for category_id, (category, variablelist) in variables.items():
-        globals_exec[category_id] = variablelist.copy()
+        globals_exec[category_id] = dict(
+            zip(variablelist.keys(),
+            [variable['value'] for variable in variablelist.values()]))
 
     directory = "/etc/planetlab/db-config.d"
     snippets = GetSnippets(directory)