# HG changeset patch # User Sylvain Thénault # Date 1299536182 -3600 # Node ID f2ae6202754c768fded21863a33a1e795c08b410 # Parent 453c7bbae3ff796147261116605a65c1b0ea48ba [source host alias] match_host is the attribute, match is the method diff -r 453c7bbae3ff -r f2ae6202754c hooks/syncsources.py --- 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