From 8aaf21d53757ba71d21ecd0dbfbeae0a473325e4 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Thu, 9 Aug 2012 09:42:13 -0700 Subject: [PATCH] Oops tempfile now gives us file objects not fds. --- teuthology/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/queue.py b/teuthology/queue.py index 9d6e865af3356..02f78884ab8e6 100644 --- a/teuthology/queue.py +++ b/teuthology/queue.py @@ -121,7 +121,7 @@ def run_job(job_config, archive_path): prefix='teuthology-worker.', suffix='.tmp', ) as tmp: - os.write(tmp, yaml.safe_dump(job_config['config'])) + yaml.safe_dump(data=job_config['config'], stream=tmp) arg.append(tmp.name) p = subprocess.Popen( args=arg, -- 2.39.5