deleted old config.py object... no need for that anymore.
This commit is contained in:
parent
6a57806e7f
commit
79a8f5edcf
1 changed files with 0 additions and 26 deletions
|
|
@ -1,26 +0,0 @@
|
|||
import json
|
||||
from tasks import parseTaskList
|
||||
from members import parseMemberList
|
||||
|
||||
#from hostgroups import parseHostGroupList
|
||||
#from layouts import parseLayoutList
|
||||
|
||||
|
||||
class Config:
|
||||
def __init__(self, configFile, log):
|
||||
self.configfile = configFile
|
||||
f = open(configFile)
|
||||
self.config = f.read()
|
||||
f.close()
|
||||
|
||||
self.dict = json.loads(self.config)
|
||||
|
||||
self.tasks = parseTaskList(self.dict['tasks'])
|
||||
self.members = parseMemberList(self.dict['members'], self.tasks, log)
|
||||
#self.periods = parsePeriodList(self.dict['periods'], log)
|
||||
#self.hostgroups = parseHostGroupList(self.dict['hostgroups'],
|
||||
# self.members,
|
||||
# self.periods,
|
||||
# log)
|
||||
|
||||
#self.layouts = LayoutList(self.dict['layouts'], self.hostgroups)
|
||||
Loading…
Add table
Add a link
Reference in a new issue