Bug 14509 - Can't attach ISO to OVM guest instance

status 14509: resolved fixed
reviewed-by: Edison
This commit is contained in:
frank 2012-03-30 12:55:05 -07:00
parent a4e8133b78
commit 911431630a
1 changed files with 4 additions and 0 deletions

View File

@ -500,6 +500,10 @@ class OvmVm(OvmObject):
scope = 'cfg'
vmPath = OvmHost()._getVmPathFromPrimaryStorage(vmName)
vmType = OvmVm()._getVmTypeFromConfigFile(vmPath)
if vmType != 'HVM':
raise Exception("Only HVM supports attaching/detaching ISO")
if not isAttach:
iso = ''
else: