def getStopTasks(self): taskset = Device.getStopTasks(self) stop_vnc = tasks.Task("stop-vnc", self._stopVnc, reverseFn=self._fallbackStop) stop_vm = tasks.Task("stop-vm", self._stopVm, reverseFn=self._fallbackStop) unassign_vnc_port = tasks.Task("unassign-vnc-port", self._unassignVncPort, reverseFn=self._fallbackStop, after=stop_vnc) taskset.add([stop_vnc, stop_vm, unassign_vnc_port]) return self._adaptTaskset(taskset)
def getStopTasks(self): taskset = Device.getStopTasks(self) taskset.add(tasks.Task("stop", self._stopDev)) return taskset