mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-5873: [Automation] Failed to attach volume to VM, if the vm is created with option startvm=false
This commit is contained in:
parent
a9c25dcfa3
commit
b5b4607f79
@ -1125,6 +1125,13 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
||||
VolumeVO volume = _volsDao.findById(volumeId);
|
||||
|
||||
disk.setPath(volume.get_iScsiName());
|
||||
|
||||
if (disk.getData() instanceof VolumeObjectTO) {
|
||||
VolumeObjectTO volTo = (VolumeObjectTO)disk.getData();
|
||||
|
||||
volTo.setPath(volume.get_iScsiName());
|
||||
}
|
||||
|
||||
volume.setPath(volume.get_iScsiName());
|
||||
|
||||
_volsDao.update(volumeId, volume);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user