Merge e383a18d03 into e6472c623d
This commit is contained in:
commit
dc56ebaf18
8 changed files with 134 additions and 17 deletions
|
|
@ -37,7 +37,12 @@ class IPMI():
|
|||
"""
|
||||
|
||||
def __init__(self):
|
||||
self.ret, self.output = subprocess.getstatusoutput('ipmitool lan print')
|
||||
try:
|
||||
self.ret, self.output = subprocess.getstatusoutput('ipmitool lan print')
|
||||
except Exception as e:
|
||||
self.ret = 42
|
||||
self.output = str(e)
|
||||
|
||||
if self.ret != 0:
|
||||
logging.error('Cannot get ipmi info: {}'.format(self.output))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue