use ignore-undefined-variable

This commit is contained in:
Daniel A. Wozniak 2018-05-14 08:26:01 -07:00 committed by rallytime
parent 37caecb7f4
commit 0109249c78
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19
2 changed files with 5 additions and 1 deletions

4
test Normal file
View file

@ -0,0 +1,4 @@
a
b
c

View file

@ -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