]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Flush data to temp file before reading it in another process.
authorTommi Virtanen <tv@inktank.com>
Thu, 9 Aug 2012 16:42:35 +0000 (09:42 -0700)
committerTommi Virtanen <tv@inktank.com>
Thu, 9 Aug 2012 16:42:35 +0000 (09:42 -0700)
teuthology/queue.py

index 02f78884ab8e601849d999e904b8fda63505592f..cbd2f9cc846909db53f54d5a2502c376f7580480 100644 (file)
@@ -122,6 +122,7 @@ def run_job(job_config, archive_path):
         suffix='.tmp',
         ) as tmp:
         yaml.safe_dump(data=job_config['config'], stream=tmp)
+        tmp.flush()
         arg.append(tmp.name)
         p = subprocess.Popen(
             args=arg,