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
1f13ff59b3
commit
7cf72073d0
2 changed files with 2 additions and 6 deletions
|
@ -5391,7 +5391,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 +5623,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]
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ import pytest
|
|||
import salt.loader
|
||||
import salt.modules.win_lgpo as win_lgpo_module
|
||||
import salt.states.win_lgpo as win_lgpo_state
|
||||
import salt.utils.win_lgpo_auditpol as win_lgpo_auditpol
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.windows_whitelisted,
|
||||
|
@ -29,9 +28,6 @@ def configure_loader_modules(minion_opts, modules):
|
|||
"__utils__": utils,
|
||||
"__context__": {},
|
||||
},
|
||||
win_lgpo_auditpol: {
|
||||
"__context__": {},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue