mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
pamd: use module.tmpdir for NamedTemporaryFile() (#47133)
This commit is contained in:
committed by
Jordan Borean
parent
0c6513e9b1
commit
d3be4f75ca
@@ -778,7 +778,7 @@ def main():
|
||||
backupdest = module.backup_local(fname)
|
||||
print("BACKUP DEST", backupdest)
|
||||
try:
|
||||
temp_file = NamedTemporaryFile(mode='w')
|
||||
temp_file = NamedTemporaryFile(mode='w', dir=module.tmpdir)
|
||||
with open(temp_file.name, 'w') as fd:
|
||||
fd.write(str(service))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user