# HG changeset patch # User Sylvain Thénault <sylvain.thenault@logilab.fr> # Date 1287676615 -7200 # Node ID 7abd07ff04719284e44ca9ae0e72b22a676bab63 # Parent 0d9ea7f93065c7d31c806c84871ade65f377f685 [cwsource] fix dumb name error diff -r 0d9ea7f93065 -r 7abd07ff0471 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