1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Small python3 compat in vault to keep code in sync with v2

This commit is contained in:
Toshio Kuratomi 2014-10-21 10:32:25 -04:00
parent 43b3eecf52
commit 3d135f98d1

View file

@ -183,7 +183,7 @@ class VaultEditor(object):
def _edit_file_helper(self, existing_data=None, cipher=None): def _edit_file_helper(self, existing_data=None, cipher=None):
# make sure the umask is set to a sane value # make sure the umask is set to a sane value
old_umask = os.umask(0077) old_umask = os.umask(0o077)
# Create a tempfile # Create a tempfile
_, tmp_path = tempfile.mkstemp() _, tmp_path = tempfile.mkstemp()