mirror of https://github.com/apache/cloudstack.git
fix dettach iso issue: if dettach iso failed on hypervisor, mgt server still regards it as success, then you can't attach another ISO to the vm again unless your stop/start the VM
This commit is contained in:
parent
3c88f21645
commit
d9b61f26da
|
|
@ -221,7 +221,6 @@ Requires: jpackage-utils
|
|||
Requires: %{name}-daemonize
|
||||
Requires: /sbin/service
|
||||
Requires: /sbin/chkconfig
|
||||
Requires: jnetpcap
|
||||
Group: System Environment/Libraries
|
||||
|
||||
%package baremetal-agent
|
||||
|
|
@ -304,6 +303,7 @@ The Cloud.com command line tools contain a few Python modules that can call clou
|
|||
%package premium-agent
|
||||
Summary: Cloud.com premium agent
|
||||
Requires: cloud-agent
|
||||
Requires: jnetpcap
|
||||
Group: System Environment/Libraries
|
||||
%description premium-agent
|
||||
The Cloud.com premium agent
|
||||
|
|
|
|||
|
|
@ -827,7 +827,7 @@ public class TemplateManagerImpl implements TemplateManager, Manager, TemplateSe
|
|||
vm.setIsoId(iso.getId());
|
||||
_userVmDao.update(vmId, vm);
|
||||
}
|
||||
if ( !attach ) {
|
||||
if ( success && !attach ) {
|
||||
vm.setIsoId(null);
|
||||
_userVmDao.update(vmId, vm);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue