pvl.hosts.apply_hosts_config() fix domain-section scalar override
authorTero Marttila <terom@paivola.fi>
Tue, 17 Dec 2013 17:44:47 +0200
changeset 307 cc645622024e
parent 306 a1bdb4499c7a
child 308 08176bed21e3
pvl.hosts.apply_hosts_config() fix domain-section scalar override
pvl/hosts.py
--- a/pvl/hosts.py	Tue Dec 17 17:31:41 2013 +0200
+++ b/pvl/hosts.py	Tue Dec 17 17:44:47 2013 +0200
@@ -130,7 +130,8 @@
 
     if config.sections :
         # recurse; this is a domain meta-section
-        params = dict(defaults, domain=name, **scalars)
+        params = dict(defaults, domain=name)
+        params.update(**scalars) # override
 
         for section in config.sections :
             for host in apply_hosts_config(options, config[section], section, params) :