summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/uuid.py2
-rw-r--r--Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py
index 20b02da..36c956e 100644
--- a/Lib/uuid.py
+++ b/Lib/uuid.py
@@ -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
diff --git a/Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst b/Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst
new file mode 100644
index 0000000..d5f88ce
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst
@@ -0,0 +1 @@
+The getnode() ip getter now uses 'ip link' instead of 'ip link list'.