pamd: use module.tmpdir for NamedTemporaryFile() (#47133)
This commit is contained in:
parent
0c6513e9b1
commit
d3be4f75ca
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue