Example #1
0
 def _match(self, item, metadata):
     if item.tag == 'Group' and not len(item.getchildren()):
         return [item]
     return BundleTemplateFile._match(self, item, metadata)
Example #2
0
 def __init__(self, name, fam):
     BundleTemplateFile.__init__(self, name,
                                 Bcfg2.Server.Plugin.Specificity(), None)
     self.fam = fam
     self.should_monitor = True
     self.fam.AddMonitor(self.name, self)