mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixes #22335: Adds filename extension to tempfile for Vault
This commit is contained in:
parent
1f962bd937
commit
f787be3597
1 changed files with 2 additions and 1 deletions
|
@ -662,7 +662,8 @@ class VaultEditor:
|
||||||
existing_data=None, force_save=False, vault_id=None):
|
existing_data=None, force_save=False, vault_id=None):
|
||||||
|
|
||||||
# Create a tempfile
|
# 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)
|
os.close(fd)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue