mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
63b664334b
commit
c477b70753
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue