mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Lint
This commit is contained in:
parent
a11bcfb663
commit
6bf7d85dfe
@ -624,7 +624,7 @@ def write_pem(text, path, pem_type=None):
|
||||
|
||||
salt '*' x509.write_pem "-----BEGIN CERTIFICATE-----MIIGMzCCBBugA..." path=/etc/pki/mycert.crt
|
||||
'''
|
||||
old_umask = os.umask(077)
|
||||
old_umask = os.umask(0o77)
|
||||
text = get_pem_entry(text, pem_type=pem_type)
|
||||
salt.utils.fopen(path, 'w').write(text)
|
||||
os.umask(old_umask)
|
||||
|
Loading…
Reference in New Issue
Block a user