diff options
author | Adrian Lane <adrian.lane@canonical.com> | 2020-05-18 22:57:32 -0700 |
---|---|---|
committer | Adrian Lane <adrian.lane@canonical.com> | 2020-05-18 22:57:32 -0700 |
commit | 3bea9c07e888252db41e6178e961bf169dd200ef (patch) | |
tree | c8b3e857389649411dc6cd3d48cda65c999209dc /bin | |
parent | 24b1c85ee819c2ba0f04ba28ad14f2f190a1f935 (diff) |
Updated _process_exec() conditionals with more appropriate evaluation method.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ipmi_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ipmi_test.py b/bin/ipmi_test.py index dc63711c..bea81676 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: |