Fixed call of non-existing logger method

parent dd0d4f5c
......@@ -97,8 +97,10 @@ class CommonInfo(service.FunctionObject) :
try:
proc_args_list = [config.value(SERVICE_NAME, "lsb_release_bin"), option]
return ":".join(tools.process.execProcess(proc_args_list)[0].split(":")[1:]).strip()
except Exception as e:
logger.exception(e)
except FileNotFoundError:
logger.error("Directory /usr/bin/lsb_release does not exist")
return "Error: /usr/bin/lsb_release doesn\'t exist"
def unameOption(self, option) :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment