CO - fixing typographic errors

community
Gogs 7 years ago
parent 2bf25b653b
commit cc36e0f85a

@ -253,7 +253,7 @@ def InitCollector():
# @TODO : Validate the account & plan, insure preconditions are met/satisfied
#
m = {'apps':'monitor.DetailProcess','folders':'monitor.FileWatch'}
a = {'apps':'actor.Apps','mailer':'actor.Mailer','folders':'actor.Folder'}
a = {'apps':'actor.Apps','mailer':'actor.Mailer','folders':'actor.Folders'}
lagents = []
lactors = []
for id in m :

@ -55,8 +55,9 @@ class Manager() :
self.LIMIT = -1
#self.filter(meta)
self.filter('agents',meta,self.agents)
self.filter('actors',meta,self.actors)
meta = meta[0]
self.agents = self.filter('agents',meta,self.agents)
self.actors = self.filter('actors',meta,self.actors)
self.setup(meta)
def filter_collectors(self,meta) :
@ -78,7 +79,7 @@ class Manager() :
def filter(self,id,meta,objects):
values = meta[id].replace(' ','').split(',')
return [item for item in objects if object.getName() in values]
return [item for item in objects if item.getName() in values]
def __filter(self,meta) :
scope = []
lactors= []
@ -138,8 +139,8 @@ class Manager() :
if len(args.keys()) > 0 :
self.apply_setup('apps',args)
args = couchdb.view('config/folders',key=self.key)
if 'folder_threshold' not in meta :
args['threshold'] = meta['folder_threshold']
if 'folder_size' not in meta :
args['threshold'] = meta['folder_size']
self.apply_setup('folders',args)
def apply_setup(self,name,args) :

Loading…
Cancel
Save