[cwsource] fix dumb name error
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Oct 2010 17:56:55 +0200
changeset 6578 7abd07ff0471
parent 6577 0d9ea7f93065
child 6579 2b93aa515031
[cwsource] fix dumb name error
entities/schemaobjs.py
--- 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