diff options
author | Adrian Lane <adrian.lane@canonical.com> | 2020-05-18 22:02:02 -0700 |
---|---|---|
committer | Adrian Lane <adrian.lane@canonical.com> | 2020-05-18 22:02:02 -0700 |
commit | f6cda3556799d31e924d118dc03d71acb867bbd3 (patch) | |
tree | f84b0e955793568aae05418d7c99b253b9b76266 | |
parent | d9c88169c9c49c0466d0600d6991a7c5d80a27ae (diff) |
Updated conditional in get_ipmi_channel() to match similar methods.
-rwxr-xr-x | bin/ipmi_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ipmi_test.py b/bin/ipmi_test.py index f8f029d..dc63711 100755 --- a/bin/ipmi_test.py +++ b/bin/ipmi_test.py @@ -244,7 +244,7 @@ class FreeIpmiTest: except self._sub_process_excs as exc: self._process_exc(exc, self.get_ipmi_channel.__qualname__) return False - if len(channel) > 0: + if channel: logging.info('- Found %d channel(s)!' % len(channel)) logging.info(' IPMI channel(s): %s\n' % channel) return True |