Commit 48319b6b authored by Antoine Millet's avatar Antoine Millet
Browse files

Flush writes to result attachment of a job

parent 610d9e18
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ class AllocationJob(Job):
        results = self.attachment('results')
        for vm_name, result in results_by_vm.iteritems():
            results.write('%s: %s\n' % (vm_name, result))
        results.flush()

    def _deploy(self, vmspec, target_hv):
        # Delete keys which are not recognized by subsequent components: