bug fix: FRAPPY_CONFDIR not mandatory

This commit is contained in:
zolliker 2022-09-20 14:29:05 +02:00
parent a7559c648e
commit b81c98448d

View File

@ -50,7 +50,7 @@ class FrappyManager(ServiceManager):
cfgparser = ConfigParser() cfgparser = ConfigParser()
cfgparser.optionxform = str cfgparser.optionxform = str
cfgfile = self.env[ins].get('FRAPPY_CONFIG_FILE') cfgfile = self.env[ins].get('FRAPPY_CONFIG_FILE')
confdir = self.env[ins]['FRAPPY_CONFDIR'] confdir = self.env[ins].get('FRAPPY_CONFDIR')
if cfgfile is not None: if cfgfile is not None:
cfgfile = self.env[ins]['FRAPPY_CONFIG_FILE'].replace('<SERV>', service) cfgfile = self.env[ins]['FRAPPY_CONFIG_FILE'].replace('<SERV>', service)
cfgparser.read(cfgfile) cfgparser.read(cfgfile)