This commit is contained in:
Joseph Hall 2016-03-01 13:38:59 -07:00
parent a11bcfb663
commit 6bf7d85dfe

View File

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