diff --git a/_lastrevision b/_lastrevision index cc6fc44..2e10b0a 100644 --- a/_lastrevision +++ b/_lastrevision @@ -1 +1 @@ -057b96d7f072dc69b61ca9e3b8d04a890003e58f \ No newline at end of file +191f12d1f56ce5b5645ae420da0392941bcb2de4 \ No newline at end of file diff --git a/fixed-usage-of-ipaddress.patch b/fixed-usage-of-ipaddress.patch new file mode 100644 index 0000000..b89affc --- /dev/null +++ b/fixed-usage-of-ipaddress.patch @@ -0,0 +1,28 @@ +From 205e031f6e5552ac860120f7ac852e24c5da73e5 Mon Sep 17 00:00:00 2001 +From: Jochen Breuer +Date: Sun, 22 Apr 2018 23:11:11 +0200 +Subject: [PATCH] Fixed usage of ipaddress + +ipaddress is imported either directly or from salt.ext. If we +use it, we shouldn't address it with salt.ext.ipaddress. +--- + salt/modules/network.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/salt/modules/network.py b/salt/modules/network.py +index f188fd7954..92893572a6 100644 +--- a/salt/modules/network.py ++++ b/salt/modules/network.py +@@ -1140,7 +1140,7 @@ def convert_cidr(cidr): + ret = {'network': None, + 'netmask': None} + cidr = calc_net(cidr) +- network_info = salt.ext.ipaddress.ip_network(cidr) ++ network_info = ipaddress.ip_network(cidr) + ret['network'] = six.text_type(network_info.network_address) + ret['netmask'] = six.text_type(network_info.netmask) + return ret +-- +2.13.6 + + diff --git a/salt.changes b/salt.changes index 088cd92..2534e90 100644 --- a/salt.changes +++ b/salt.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri May 4 12:17:07 UTC 2018 - Jochen Breuer + +- Fixed Python 3 issue with CIDR addresses. + +- Added: + * fixed-usage-of-ipaddress.patch + ------------------------------------------------------------------- Wed Apr 25 14:50:36 UTC 2018 - Pablo Suárez Hernández diff --git a/salt.spec b/salt.spec index 48178f9..ab1cdde 100644 --- a/salt.spec +++ b/salt.spec @@ -96,6 +96,8 @@ Patch17: strip-trailing-commas-on-linux-user-gecos-fields.patch Patch18: provide-kwargs-to-pkg_resource.parse_targets-require.patch # PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/47270 Patch19: initialize-__context__-retcode-for-functions-handled.patch +# PATCH-FIX_UPSTREAM https://github.com/saltstack/salt/pull/47232 +Patch20: fixed-usage-of-ipaddress.patch # BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -574,6 +576,7 @@ cp %{S:5} ./.travis.yml %patch17 -p1 %patch18 -p1 %patch19 -p1 +%patch20 -p1 %build %if 0%{?build_py2}