pamd: use module.tmpdir for NamedTemporaryFile() (#47133)

This commit is contained in:
Jonathan Davila 2018-10-18 02:09:07 -04:00 committed by Jordan Borean
parent 0c6513e9b1
commit d3be4f75ca

View file

@ -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))