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 # @TODO : Validate the account & plan, insure preconditions are met/satisfied
# #
m = {'apps':'monitor.DetailProcess','folders':'monitor.FileWatch'} 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 = [] lagents = []
lactors = [] lactors = []
for id in m : for id in m :

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

Loading…
Cancel
Save