Handle invalid config better and log it
This commit is contained in:
parent
a2b01b2b1c
commit
2d3b094eca
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ class INIParser(object):
|
|||
self.ciscoasa_enabled = False
|
||||
self.ciscoasa_firewalls = []
|
||||
|
||||
try:
|
||||
self.parse_opts()
|
||||
except configparser.NoOptionError as e:
|
||||
logger.error(e)
|
||||
|
||||
def enable_check(self, server_type=None):
|
||||
t = server_type
|
||||
|
|
Loading…
Reference in a new issue