summarylogtreecommitdiffstats
path: root/0001-saltssh-py38.patch
diff options
context:
space:
mode:
authorKirill Goncharov2020-01-22 18:22:16 +0300
committerzer0def2020-01-22 18:17:45 +0100
commit903b44abed79cb1df80a3f9f008cd778e4768dd6 (patch)
treea3de0ec402519662b9c03524773e4a97f482925d /0001-saltssh-py38.patch
parentaf1ad2b1ccfc829a0c9315873c78af48bdb4c4db (diff)
downloadaur-903b44abed79cb1df80a3f9f008cd778e4768dd6.tar.gz
Add python3.8 patch for salt-ssh
Diffstat (limited to '0001-saltssh-py38.patch')
-rw-r--r--0001-saltssh-py38.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/0001-saltssh-py38.patch b/0001-saltssh-py38.patch
new file mode 100644
index 000000000000..e099a04a5962
--- /dev/null
+++ b/0001-saltssh-py38.patch
@@ -0,0 +1,25 @@
+index a3be0b8a1c..ff548923f4 100644
+--- "a/salt/grains/core.py"
++++ "b/salt/grains/core.py"
+@@ -35,12 +35,6 @@ except ImportError:
+ __proxyenabled__ = ['*']
+ __FQDN__ = None
+
+-# Extend the default list of supported distros. This will be used for the
+-# /etc/DISTRO-release checking that is part of linux_distribution()
+-from platform import _supported_dists
+-_supported_dists += ('arch', 'mageia', 'meego', 'vmware', 'bluewhite64',
+- 'slamd64', 'ovs', 'system', 'mint', 'oracle', 'void')
+-
+ # linux_distribution deprecated in py3.7
+ try:
+ from platform import linux_distribution as _deprecated_linux_distribution
+@@ -1939,7 +1933,7 @@ def os_data():
+ )
+ (osname, osrelease, oscodename) = \
+ [x.strip('"').strip("'") for x in
+- linux_distribution(supported_dists=_supported_dists)]
++ linux_distribution()]
+ # Try to assign these three names based on the lsb info, they tend to
+ # be more accurate than what python gets from /etc/DISTRO-release.
+ # It's worth noting that Ubuntu has patched their Python distribution