Skip to content

Commit 961dbe0

Browse files
authored
bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696)
1 parent fb77e0d commit 961dbe0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Lib/uuid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def _ifconfig_getnode():
401401
def _ip_getnode():
402402
"""Get the hardware address on Unix by running ip."""
403403
# This works on Linux with iproute2.
404-
mac = _find_mac('ip', 'link list', [b'link/ether'], lambda i: i+1)
404+
mac = _find_mac('ip', 'link', [b'link/ether'], lambda i: i+1)
405405
if mac:
406406
return mac
407407
return None
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The getnode() ip getter now uses 'ip link' instead of 'ip link list'.

0 commit comments

Comments
 (0)