pvl.hosts.config: fix handling of mixed boot=... boot.foo=... independent of dict ordering
--- a/pvl/hosts/config.py Mon Mar 02 17:58:24 2015 +0200
+++ b/pvl/hosts/config.py Mon Mar 02 18:08:30 2015 +0200
@@ -119,6 +119,8 @@
else:
f = fields
+ log.debug("%s@%s: %s:%s.%s = %r", name, domain, extension, field, instance, value)
+
if instance:
if field not in f:
f[field] = { }
@@ -127,6 +129,8 @@
f[field] = {None: f[field]}
f[field][instance] = value
+ elif field in f:
+ f[field][None] = value
else:
f[field] = value