22 lines
680 B
Diff
22 lines
680 B
Diff
Index: cloud-init-17.1/cloudinit/util.py
|
|
===================================================================
|
|
--- cloud-init-17.1.orig/cloudinit/util.py
|
|
+++ cloud-init-17.1/cloudinit/util.py
|
|
@@ -11,6 +11,7 @@
|
|
import contextlib
|
|
import copy as obj_copy
|
|
import ctypes
|
|
+import distro
|
|
import email
|
|
import glob
|
|
import grp
|
|
@@ -586,7 +587,7 @@ def system_info():
|
|
'release': platform.release(),
|
|
'python': platform.python_version(),
|
|
'uname': platform.uname(),
|
|
- 'dist': platform.dist(), # pylint: disable=W1505
|
|
+ 'dist': distro.linux_distribution(full_distribution_name=False),
|
|
}
|
|
system = info['system'].lower()
|
|
var = 'unknown'
|