]> granicus.if.org Git - python/commitdiff
bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list'...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 7 Dec 2017 12:48:14 +0000 (04:48 -0800)
committerxdegaye <xdegaye@gmail.com>
Thu, 7 Dec 2017 12:48:14 +0000 (13:48 +0100)
(cherry picked from commit 961dbe0548e26394b7716d41423c61b1e2e58ef7)

Lib/uuid.py
Misc/NEWS.d/next/Library/2017-12-04-12-23-26.bpo-32199.nGof4v.rst [new file with mode: 0644]

index 20b02da1ae4e7edb44aefccd9be5c92178458b2b..36c956e2b0fd1e4b5fcb0c3a6a5358e76727ea1c 100644 (file)
@@ -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 (file)
index 0000000..d5f88ce
--- /dev/null
@@ -0,0 +1 @@
+The getnode() ip getter now uses 'ip link' instead of 'ip link list'.