mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
Fixes #22335: Adds filename extension to tempfile for Vault
This commit is contained in:
@@ -662,7 +662,8 @@ class VaultEditor:
|
||||
existing_data=None, force_save=False, vault_id=None):
|
||||
|
||||
# Create a tempfile
|
||||
fd, tmp_path = tempfile.mkstemp()
|
||||
root, ext = os.path.splitext(os.path.realpath(filename))
|
||||
fd, tmp_path = tempfile.mkstemp(suffix=ext)
|
||||
os.close(fd)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user