示例#1
0
	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)
示例#2
0
文件: prog.py 项目: david-hock/ToMaTo
	def getStopTasks(self):
		taskset = Device.getStopTasks(self)
		taskset.add(tasks.Task("stop", self._stopDev))
		return taskset