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

pull/38751/merge
Jonathan Davila 6 years ago 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))

Loading…
Cancel
Save