Francesco Romani has uploaded a new change for review. Change subject: vdsm interface: drop unused code ......................................................................
vdsm interface: drop unused code Drop no longer used methods. Change-Id: Idc192ea3cdb8b5064271b48305822c4b75c1445c Signed-off-by: Francesco Romani <[email protected]> --- M mom/HypervisorInterfaces/vdsmInterface.py 1 file changed, 0 insertions(+), 24 deletions(-) git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/46/41146/1 diff --git a/mom/HypervisorInterfaces/vdsmInterface.py b/mom/HypervisorInterfaces/vdsmInterface.py index c38bfc3..c53f0aa 100644 --- a/mom/HypervisorInterfaces/vdsmInterface.py +++ b/mom/HypervisorInterfaces/vdsmInterface.py @@ -48,30 +48,6 @@ if response['status']['code']: raise vdsmException(response, self.logger) - def _vmIsRunning(self, vm): - if vm['status'] == 'Up': - return True - else: - return False - - def getVmName(self, uuid): - try: - response = self.vdsm_api.getVMList(True, [uuid]) - self._check_status(response) - return response['vmList'][0]['vmName'] - except vdsmException, e: - e.handle_exception() - return None - - def getVmPid(self, uuid): - try: - response = self.vdsm_api.getVMList(True, [uuid]) - self._check_status(response) - return response['vmList'][0]['pid'] - except vdsmException, e: - e.handle_exception() - return None - def getVmList(self): try: res = self._refresh() -- To view, visit https://gerrit.ovirt.org/41146 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idc192ea3cdb8b5064271b48305822c4b75c1445c Gerrit-PatchSet: 1 Gerrit-Project: mom Gerrit-Branch: master Gerrit-Owner: Francesco Romani <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
