From e0d5493270f491a2b71908309a9d97f246ce694f Mon Sep 17 00:00:00 2001 From: frank Date: Thu, 3 Nov 2011 16:24:40 -0700 Subject: [PATCH] Bug 11886 - OVM - after windows ISO installation, ovm server place VM in stopped state. But MS is unaware of VM in stopped state still show VM in running state fix typo --- ovm/scripts/vm/hypervisor/ovm/OvmVmModule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ovm/scripts/vm/hypervisor/ovm/OvmVmModule.py b/ovm/scripts/vm/hypervisor/ovm/OvmVmModule.py index b16c69fa809..7257b6b8778 100755 --- a/ovm/scripts/vm/hypervisor/ovm/OvmVmModule.py +++ b/ovm/scripts/vm/hypervisor/ovm/OvmVmModule.py @@ -130,7 +130,7 @@ class OvmVm(OvmObject): for f in os.listdir(vmPath): fp = join(vmPath, f) if isfile(fp) and f.startswith(OWNER_FILE_PREFIX): - os.remove(join(vmPath, fp)) + os.remove(fp) @staticmethod def create(jsonString): @@ -299,7 +299,7 @@ class OvmVm(OvmObject): logger.info(OvmVm.stop, "Stop vm %s"%vmName) vmPath = OvmHost()._vmNameToPath(vmName) - # set the VM to DOWN before starting, OVS agent will check this status + # set the VM to RUNNING before starting, OVS agent will check this status set_vm_status(vmPath, 'RUNNING') raiseExceptionIfFail(stop_vm(vmPath)) return SUCC()