Adds support for inet_pton in Windows to network util

This commit is contained in:
twangboy 2017-03-17 10:16:58 -06:00
parent 116201f345
commit 06dfd55ef9

View file

@ -25,6 +25,10 @@ except ImportError:
import salt.utils
from salt._compat import subprocess, ipaddress
# inet_pton does not exist in Windows, this is a workaround
if salt.utils.is_windows():
from salt.ext import win_inet_pton # pylint: disable=unused-import
log = logging.getLogger(__name__)
# pylint: disable=C0103