mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
use ignore-undefined-variable
This commit is contained in:
parent
2429f9fe8a
commit
b6a21dfda3
2 changed files with 5 additions and 1 deletions
4
test
Normal file
4
test
Normal file
|
@ -0,0 +1,4 @@
|
|||
a
|
||||
b
|
||||
c
|
||||
|
|
@ -59,7 +59,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…
Add table
Reference in a new issue