mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
fix lint
This commit is contained in:
parent
ec49ec72c8
commit
fb658a369b
2 changed files with 1 additions and 5 deletions
|
@ -74,8 +74,6 @@ Usage:
|
|||
store='lgpo')
|
||||
"""
|
||||
|
||||
from lib2to3.fixer_util import Comma
|
||||
|
||||
import salt.utils.platform
|
||||
import salt.utils.win_pwsh
|
||||
from salt.exceptions import CommandExecutionError
|
||||
|
@ -546,7 +544,7 @@ def set_logging_settings(profile, setting, value, store="local"):
|
|||
if str(value).lower() == "notconfigured" and store.lower() == "local":
|
||||
if setting in ["allowedconnections", "droppedconnections", "maxfilesize"]:
|
||||
raise CommandExecutionError(
|
||||
f"NotConfigured only valid when setting Group Policy"
|
||||
"NotConfigured only valid when setting Group Policy"
|
||||
)
|
||||
if setting == "maxfilesize" and str(value).lower() == "notconfigured":
|
||||
raise CommandExecutionError(f"NotConfigured not a valid option for {setting}")
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
import pytest
|
||||
|
||||
import salt.utils.win_lgpo_netsh as win_lgpo_netsh
|
||||
import salt.utils.win_pwsh as win_pwsh
|
||||
from salt.exceptions import CommandExecutionError
|
||||
from salt.modules.win_useradd import current
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.windows_whitelisted,
|
||||
|
|
Loading…
Add table
Reference in a new issue