Commit 06b13ca6 authored by Никита Ефремов's avatar Никита Ефремов Committed by Nick Yefremov

Fixed call of non-existing logger method

parent bc1709c2
...@@ -97,8 +97,10 @@ class CommonInfo(service.FunctionObject) : ...@@ -97,8 +97,10 @@ class CommonInfo(service.FunctionObject) :
try: try:
proc_args_list = [config.value(SERVICE_NAME, "lsb_release_bin"), option] proc_args_list = [config.value(SERVICE_NAME, "lsb_release_bin"), option]
return ":".join(tools.process.execProcess(proc_args_list)[0].split(":")[1:]).strip() return ":".join(tools.process.execProcess(proc_args_list)[0].split(":")[1:]).strip()
except Exception as e: except FileNotFoundError:
logger.exception(e) logger.error("Directory /usr/bin/lsb_release does not exist")
return "Error: /usr/bin/lsb_release doesn\'t exist"
def unameOption(self, option) : 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