Commit 6b6421af authored by Никита Ефремов's avatar Никита Ефремов Committed by Никита Ефремов

Removed IDE autogenerated text and unused degugger calls, restored removed exception handler

parent 346357bb
...@@ -38,8 +38,6 @@ class CommonInfo(service.FunctionObject) : ...@@ -38,8 +38,6 @@ class CommonInfo(service.FunctionObject) :
@service.functionMethod(LSB_RELASE_METHODS_NAMESPACE, out_signature="s") @service.functionMethod(LSB_RELASE_METHODS_NAMESPACE, out_signature="s")
def version(self) : def version(self) :
import pdb
pdb.set_trace
return self.lsbOption(LSB_OPTION_VERSION) return self.lsbOption(LSB_OPTION_VERSION)
@service.functionMethod(LSB_RELASE_METHODS_NAMESPACE, out_signature="s") @service.functionMethod(LSB_RELASE_METHODS_NAMESPACE, out_signature="s")
...@@ -96,9 +94,11 @@ class CommonInfo(service.FunctionObject) : ...@@ -96,9 +94,11 @@ class CommonInfo(service.FunctionObject) :
### Private ### ### Private ###
def lsbOption(self, option) : def lsbOption(self, option) :
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:
logger.exception(e)
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