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
This commit is contained in:
frank 2011-11-03 16:24:40 -07:00
parent d9c41df1a1
commit e0d5493270
1 changed files with 2 additions and 2 deletions

View File

@ -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()