edit tests and config

This commit is contained in:
Bastian Schroll 2018-01-08 23:41:33 +01:00
parent d6cd7b8cde
commit 2d279f6e71
6 changed files with 19 additions and 19 deletions

View file

@ -56,10 +56,10 @@ class Config:
return False
except:
self._sharePoints[sharePoint] = self._config
logging.debug("shared configuration as: %s", sharePoint)
logging.debug("configuration sharePoint: %s", sharePoint)
return True
def getConfig(self, section, key, sharePoint=""):
def get(self, section, key, sharePoint=""):
"""!Method to read a single config entry
@param section: Section to read from
@ -70,7 +70,7 @@ class Config:
try:
return self._sharePoints[sharePoint].get(section, key)
except KeyError:
logging.error("no shared config named: %s", sharePoint)
logging.error("no sharePoint named: %s", sharePoint)
except configparser.NoSectionError:
logging.error("no shared config section: %s", section)
except configparser.NoOptionError: