Disable pylint check in salt-ssh shim

This commit is contained in:
Erik Johnson 2018-02-27 09:41:49 -06:00
parent ecadf67659
commit 58a11aaa26
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -105,11 +105,11 @@ def need_deployment():
"""
if os.path.exists(OPTIONS.saltdir):
shutil.rmtree(OPTIONS.saltdir)
old_umask = os.umask(0o077)
old_umask = os.umask(0o077) # pylint: disabe=blacklisted-function
try:
os.makedirs(OPTIONS.saltdir)
finally:
os.umask(old_umask)
os.umask(old_umask) # pylint: disabe=blacklisted-function
# Verify perms on saltdir
if not is_windows():
euid = os.geteuid()