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.
This commit is contained in:
Jochen Breuer 2018-04-22 23:11:11 +02:00 committed by rallytime
parent 63b664334b
commit c477b70753
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -1135,7 +1135,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'] = str(network_info.network_address)
ret['netmask'] = str(network_info.netmask)
return ret