entities/schemaobjs.py
changeset 6578 7abd07ff0471
parent 6427 c8a5ac2d1eaa
child 6627 430b7703b3fd
--- a/entities/schemaobjs.py	Thu Oct 21 17:56:35 2010 +0200
+++ b/entities/schemaobjs.py	Thu Oct 21 17:56:55 2010 +0200
@@ -33,7 +33,6 @@
 from cubicweb.entities import AnyEntity, fetch_config
 
 
-
 class CWSource(AnyEntity):
     __regid__ = 'CWSource'
     fetch_attrs, fetch_order = fetch_config(['name', 'type'])
@@ -47,7 +46,8 @@
         dictconfig = self.dictconfig
         host = gethostname()
         for hostcfg in self.host_configs:
-            if hostcfg.match(hostname):
+            if hostcfg.match(host):
+                self.info('matching host config %s' % hostcfg.match_host)
                 dictconfig.update(hostcfg.dictconfig)
         return dictconfig