summaryrefslogtreecommitdiff
diff options
authorAdrian Lane <adrian.lane@canonical.com>2020-05-18 22:57:32 -0700
committerAdrian Lane <adrian.lane@canonical.com>2020-05-18 22:57:32 -0700
commitda71ba1007b67c161c8a650fa194a020aa7004d9 (patch)
tree5852ed972342a53844b9a036935a74f5f73395a0
parentf6cda3556799d31e924d118dc03d71acb867bbd3 (diff)
Updated _process_exec() conditionals with more appropriate evaluation method.
-rwxr-xr-xbin/ipmi_test.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ipmi_test.py b/bin/ipmi_test.py
index dc63711..bea8167 100755
--- a/bin/ipmi_test.py
+++ b/bin/ipmi_test.py
@@ -61,9 +61,9 @@ class FreeIpmiTest:
'ipmi_msghandler')
# method subprocess commands (FreeIPMI)
self._cmd_ipmi_chassis = [
- get_path('ipmi-chassis'), '--get-status']
+ get_path('ipmi-chassisd'), '--get-status']
self._cmd_ipmi_channel = [
- get_path('ipmi-config'), '--checkout',
+ get_path('ipmi-configd'), '--checkout',
'--lan-channel-number']
self._cmd_get_bmc_info = [
get_path('bmc-info')]
@@ -102,11 +102,11 @@ class FreeIpmiTest:
"""Allows for bundling of exception handling for all
methods within this class.
"""
- if type(exc) == TimeoutExpired:
+ if type(exc) is TimeoutExpired:
logging.info(
'* Timeout calling %s! (%ss)\n' %
(test_method, self._subproc_timeout))
- elif type(exc) == FileNotFoundError:
+ elif type(exc) is FileNotFoundError:
logging.info(
'* Error calling %s! Check cmds/paths.\n' % test_method)
else: