Martin Betak has uploaded a new change for review. Change subject: vm: Make run() return status ......................................................................
vm: Make run() return status Change-Id: Ia21eefb7ff9ccb144c000c620788567692489f11 Signed-off-by: Martin Betak <mbe...@redhat.com> --- M vdsm/clientIF.py M vdsm/virt/vm.py 2 files changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/45/53745/1 diff --git a/vdsm/clientIF.py b/vdsm/clientIF.py index 0d1e235..7a7ec48 100644 --- a/vdsm/clientIF.py +++ b/vdsm/clientIF.py @@ -439,8 +439,7 @@ return errCode['exist'] vm = Vm(self, vmParams, vmRecover) self.vmContainer[vmParams['vmId']] = vm - vm.run() - return {'status': doneCode, 'vmList': vm.status()} + return vm.run() def getAllVmStats(self): return [v.getStats() for v in self.vmContainer.values()] diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py index df58d1b..420b5b6 100644 --- a/vdsm/virt/vm.py +++ b/vdsm/virt/vm.py @@ -657,6 +657,7 @@ def run(self): self._creationThread.start() + return response.success(vmList=self.status()) def memCommit(self): """ -- To view, visit https://gerrit.ovirt.org/53745 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia21eefb7ff9ccb144c000c620788567692489f11 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Martin Betak <mbe...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches