mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ignore pylint WindowsError
This commit is contained in:
parent
2d63682fea
commit
2429f9fe8a
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ def can_runas():
|
|||
salt.utils.win_runas.run_as(
|
||||
'cmd.exe /c echo 1', 'noexistuser', 'n0existp4ss',
|
||||
)
|
||||
except WindowsError as exc:
|
||||
except WindowsError as exc: # pylint: disable=E060
|
||||
if exc.winerror == 5:
|
||||
# Access Denied
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue