Change in vdsm[master]: virt: add run_async helper

fromani at redhat.com fromani at redhat.com
Mon Dec 14 11:27:37 UTC 2015


Francesco Romani has posted comments on this change.

Change subject: virt: add run_async helper
......................................................................


Patch Set 5: Code-Review-1

(1 comment)

will simplify a bit more, let's save changes for the next patches.

https://gerrit.ovirt.org/#/c/49570/5/vdsm/virt/vm.py
File vdsm/virt/vm.py:

Line 680:                 self.updateDriveIndex(drv)
Line 681: 
Line 682:         return [drv for order, drv in drives]
Line 683: 
Line 684:     def run(self, spawn=run_async):
> this method didn't return anything before (it seems), do you utilize this n
Yes, I'd like to use this in cif/API.py.
The alternative is to let the exception bubble up.
For this patch maybe better just having the latter way, let me update this.
Line 685:         try:
Line 686:             spawn(self._startUnderlyingVm)
Line 687:         except AsyncStartError as ex:
Line 688:             return response.error(ex.error)


-- 
To view, visit https://gerrit.ovirt.org/49570
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Icfb405389c465d2a8b8fc8b6f958926d58167a26
Gerrit-PatchSet: 5
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Betak <mbetak at redhat.com>
Gerrit-Reviewer: Milan Zamazal <mzamazal at redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes


More information about the vdsm-patches mailing list