Fix docsting in Mellanox _detect_hardware
This is followup patch from the review of this I4e7f7649a1bdeaa3ee99b2748037b0f37fea486c commit. Change-Id: I3151daec4ff4ed9c7159a9f3f7f25367586cf3ae
This commit is contained in:
parent
73825b28b8
commit
92ced38bfe
@ -56,7 +56,8 @@ def _generate_client_id(address):
|
||||
def _detect_hardware():
|
||||
"""method for detection of Mellanox NICs
|
||||
|
||||
:return True/False
|
||||
:returns: Boolean value. True if the machine contain one
|
||||
or more Mellanox NIC(s), False otherwise.
|
||||
"""
|
||||
iface_names = os.listdir('/sys/class/net')
|
||||
for ifname in iface_names:
|
||||
|
Loading…
Reference in New Issue
Block a user