mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8698: Retrieve a new device ID, if needed
This commit is contained in:
parent
97eb0f7528
commit
b1905c2040
|
|
@ -2469,6 +2469,8 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
|
|||
_volsDao.update(volumeToAttach.getId(), volumeToAttach);
|
||||
}
|
||||
} else {
|
||||
deviceId = getDeviceId(vm.getId(), deviceId);
|
||||
|
||||
_volsDao.attachVolume(volumeToAttach.getId(), vm.getId(), deviceId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue