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
c1135d90c7
commit
37caecb7f4
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,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