Ticket #594: metadata.fixprobes.2.patch
File metadata.fixprobes.2.patch, 1.1 KB (added by John Morris <[email protected]…>, 15 years ago) |
---|
-
Metadata.py
old new 44 44 if event.filename != self.path: 45 45 return self.handle_event(event) 46 46 47 def get_probe_data(self, metadata ):47 def get_probe_data(self, metadata, metapluginname): 48 48 ret = [] 49 49 candidates = self.get_matching(metadata) 50 50 temp = {} … … 64 64 entry, prio = data 65 65 probe = lxml.etree.Element('probe') 66 66 probe.set('name', name.split('/')[-1]) 67 probe.set('source', "Metadata")67 probe.set('source', metapluginname) 68 68 print("Source: %s" % probe.get('source')) 69 69 probe.text = entry.data 70 70 match = self.bangline.match(entry.data.split('\n')[0]) … … 401 401 def GetProbes(self, meta, force=False): 402 402 '''Return a set of probes for execution on client''' 403 403 if self.probes: 404 return self.probes.get_probe_data(meta )404 return self.probes.get_probe_data(meta,self.__name__) 405 405 return [] 406 406 407 407 def ReceiveData(self, client, datalist):