2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 03:37:47 +00:00

Merge "Fix get_network_channel for BMCs that dislike 0xe"

This commit is contained in:
Jenkins 2017-04-20 18:35:24 +00:00 committed by Gerrit Code Review
commit b5b4e83a39

View File

@ -841,8 +841,11 @@ class Command(object):
try:
# Some implementations denote an inactive channel
# by refusing to do parameter retrieval
self.xraw_command(
netfn=0xc, command=2, data=(channel, 5, 0, 0))
if channel != 0xe:
# skip checking if channel is active if we are
# actively using the channel
self.xraw_command(
netfn=0xc, command=2, data=(channel, 5, 0, 0))
# If still here, the channel seems serviceable...
# However some implementations may still have
# ambiguous channel info, that will need to be