Revert changes to win_network.py salt util

This commit is contained in:
Twangboy 2023-02-14 17:52:10 -07:00 committed by Pedro Algarvio
parent 56ac3a0fac
commit 81293265c1

View file

@ -52,17 +52,9 @@ if IS_WINDOWS:
import salt.utils.winapi
else:
try:
# This uses .NET to get network settings and is faster than WMI
import clr
from System.Net import NetworkInformation
except ImportError:
# Just in case clr input fails for some reason
import wmi
import salt.utils.winapi
USE_WMI = True
# This uses .NET to get network settings and is faster than WMI
import clr
from System.Net import NetworkInformation
# TODO: Should we deprecate support for pythonnet 2.5.2, these enumerations can
# TODO: be deleted