small cleanups and a beautiful new whitespace in output... ;)
This commit is contained in:
parent
e6db662b67
commit
bee99d74d1
1 changed files with 1 additions and 6 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
from os.path import isfile
|
from os.path import isfile
|
||||||
from os.path import join
|
from os.path import join
|
||||||
from os import getcwd
|
|
||||||
import json
|
import json
|
||||||
import sys
|
|
||||||
import imp
|
import imp
|
||||||
from layouts import Layout
|
from layouts import Layout
|
||||||
from hostgroups import HostGroup
|
from hostgroups import HostGroup
|
||||||
|
|
@ -13,7 +11,6 @@ from lib.services.service import Service
|
||||||
from lib.processors.processor import Processor
|
from lib.processors.processor import Processor
|
||||||
from lib.parsers.parser import Parser
|
from lib.parsers.parser import Parser
|
||||||
from lib.tasks.task import Task
|
from lib.tasks.task import Task
|
||||||
from argparse import Namespace
|
|
||||||
|
|
||||||
MOD_SERVICES = "services"
|
MOD_SERVICES = "services"
|
||||||
MOD_PROCESSORS = "processors"
|
MOD_PROCESSORS = "processors"
|
||||||
|
|
@ -238,8 +235,6 @@ class FullConfigParser(ConfigParser):
|
||||||
class_check = lambda parser: isinstance(parser, Parser)
|
class_check = lambda parser: isinstance(parser, Parser)
|
||||||
self.replace_with_import(services, MOD_PARSERS, items_func, class_check)
|
self.replace_with_import(services, MOD_PARSERS, items_func, class_check)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#replace object pointer
|
#replace object pointer
|
||||||
id_list_func = lambda hostgroup: hostgroup.get_members()
|
id_list_func = lambda hostgroup: hostgroup.get_members()
|
||||||
id_get_func = lambda member: member.get_id()
|
id_get_func = lambda member: member.get_id()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue