mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Put __utils__ back in lgpo module
This commit is contained in:
parent
5e8bb1f990
commit
4a2aec777a
1 changed files with 2 additions and 3 deletions
|
@ -59,7 +59,6 @@ import salt.utils.files
|
|||
import salt.utils.path
|
||||
import salt.utils.platform
|
||||
import salt.utils.stringutils
|
||||
import salt.utils.win_lgpo_auditpol
|
||||
import salt.utils.win_lgpo_netsh
|
||||
from salt.exceptions import CommandExecutionError, SaltInvocationError
|
||||
from salt.serializers.configparser import deserialize
|
||||
|
@ -5391,7 +5390,7 @@ def _get_advaudit_defaults(option=None):
|
|||
# Get available setting names and GUIDs
|
||||
# This is used to get the fieldnames and GUIDs for individual policies
|
||||
log.debug("Loading auditpol defaults into __context__")
|
||||
dump = salt.utils.win_lgpo_auditpol.get_auditpol_dump()
|
||||
dump = __utils__["auditpol.get_auditpol_dump"]()
|
||||
reader = csv.DictReader(dump)
|
||||
audit_defaults = {"fieldnames": reader.fieldnames}
|
||||
for row in reader:
|
||||
|
@ -5623,7 +5622,7 @@ def _set_advaudit_pol_data(option, value):
|
|||
"3": "Success and Failure",
|
||||
}
|
||||
defaults = _get_advaudit_defaults(option)
|
||||
return salt.utils.win_lgpo_auditpol.set_setting(
|
||||
return __utils__["auditpol.set_setting"](
|
||||
name=defaults["Auditpol Name"], value=auditpol_values[value]
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue