mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
use ignore-undefined-variable
This commit is contained in:
parent
58911d510a
commit
3235ac08cb
@ -55,7 +55,7 @@ def can_runas():
|
||||
salt.utils.win_runas.run_as(
|
||||
'cmd.exe /c echo 1', 'noexistuser', 'n0existp4ss',
|
||||
)
|
||||
except WindowsError as exc: # pylint: disable=E060
|
||||
except WindowsError as exc: # pylint: disable=undefined-variable
|
||||
if exc.winerror == 5:
|
||||
# Access Denied
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user