Skip to content

[3.6] bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) #4747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def _ifconfig_getnode():
def _ip_getnode():
"""Get the hardware address on Unix by running ip."""
# This works on Linux with iproute2.
mac = _find_mac('ip', 'link list', [b'link/ether'], lambda i: i+1)
mac = _find_mac('ip', 'link', [b'link/ether'], lambda i: i+1)
if mac:
return mac

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The getnode() ip getter now uses 'ip link' instead of 'ip link list'.