Skip to content

Commit b5b4607

Browse files
author
Mike Tutkowski
committed
CLOUDSTACK-5873: [Automation] Failed to attach volume to VM, if the vm is created with option startvm=false
1 parent a9c25dc commit b5b4607

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,13 @@ private void handlePath(DiskTO[] disks, HypervisorType hypervisorType) {
11251125
VolumeVO volume = _volsDao.findById(volumeId);
11261126

11271127
disk.setPath(volume.get_iScsiName());
1128+
1129+
if (disk.getData() instanceof VolumeObjectTO) {
1130+
VolumeObjectTO volTo = (VolumeObjectTO)disk.getData();
1131+
1132+
volTo.setPath(volume.get_iScsiName());
1133+
}
1134+
11281135
volume.setPath(volume.get_iScsiName());
11291136

11301137
_volsDao.update(volumeId, volume);

0 commit comments

Comments
 (0)