Skip to content

Commit 03031fb

Browse files
miss-islingtonxdegaye
authored andcommitted
bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) (#4747)
(cherry picked from commit 961dbe0)
1 parent 8676ac5 commit 03031fb

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
@@ -358,7 +358,7 @@ def _ifconfig_getnode():
358358
def _ip_getnode():
359359
"""Get the hardware address on Unix by running ip."""
360360
# This works on Linux with iproute2.
361-
mac = _find_mac('ip', 'link list', [b'link/ether'], lambda i: i+1)
361+
mac = _find_mac('ip', 'link', [b'link/ether'], lambda i: i+1)
362362
if mac:
363363
return mac
364364

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)