hooks/syncsources.py
changeset 7049 f2ae6202754c
parent 7024 f4e798cf29b4
child 7399 972ed1843bd8
child 7525 1f6839019e6a
--- a/hooks/syncsources.py	Mon Mar 07 22:17:23 2011 +0100
+++ b/hooks/syncsources.py	Mon Mar 07 23:16:22 2011 +0100
@@ -89,7 +89,7 @@
     __select__ = SourceHook.__select__ & is_instance('CWSourceHostConfig')
     events = ('after_add_entity', 'after_update_entity', 'before_delete_entity',)
     def __call__(self):
-        if self.entity.match_host(gethostname()):
+        if self.entity.match(gethostname()):
             if self.event == 'after_update_entity' and \
                    not 'config' in self.entity.cw_edited:
                 return