mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
disable pylint warning caused by use of python3 pylint
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
parent
b2fdc87366
commit
0f3f437e72
1 changed files with 2 additions and 0 deletions
|
|
@ -51,7 +51,9 @@ def get_perm_addr(ifname):
|
|||
try:
|
||||
res = ecmd.tobytes()
|
||||
except AttributeError: # tobytes() is not available in python2
|
||||
# pylint: disable=no-member
|
||||
res = ecmd.tostring()
|
||||
# pylint: enable=no-member
|
||||
unused, size, perm_addr = struct.unpack("II%is" % MAX_ADDR_LEN, res)
|
||||
perm_addr = Util.mac_ntoa(perm_addr[:size])
|
||||
except IOError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue