mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Disable pylint check in salt-ssh shim
This commit is contained in:
parent
ecadf67659
commit
58a11aaa26
@ -105,11 +105,11 @@ def need_deployment():
|
|||||||
"""
|
"""
|
||||||
if os.path.exists(OPTIONS.saltdir):
|
if os.path.exists(OPTIONS.saltdir):
|
||||||
shutil.rmtree(OPTIONS.saltdir)
|
shutil.rmtree(OPTIONS.saltdir)
|
||||||
old_umask = os.umask(0o077)
|
old_umask = os.umask(0o077) # pylint: disabe=blacklisted-function
|
||||||
try:
|
try:
|
||||||
os.makedirs(OPTIONS.saltdir)
|
os.makedirs(OPTIONS.saltdir)
|
||||||
finally:
|
finally:
|
||||||
os.umask(old_umask)
|
os.umask(old_umask) # pylint: disabe=blacklisted-function
|
||||||
# Verify perms on saltdir
|
# Verify perms on saltdir
|
||||||
if not is_windows():
|
if not is_windows():
|
||||||
euid = os.geteuid()
|
euid = os.geteuid()
|
||||||
|
Loading…
Reference in New Issue
Block a user