Skip to content

Commit 1315c94

Browse files
nvazquezyadvr
authored andcommitted
CLOUDSTACK-10122: Unrelated error message (#2302)
Simply remove unrelated text from error message
1 parent a50a461 commit 1315c94

1 file changed

Lines changed: 8 additions & 13 deletions

File tree

engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,21 +1409,16 @@ public void prepare(VirtualMachineProfile vm, DeployDestination dest) throws Sto
14091409
if (value != null && value) {
14101410
cloneType = UserVmCloneType.full;
14111411
}
1412-
try {
1413-
UserVmCloneSettingVO cloneSettingVO = _vmCloneSettingDao.findByVmId(vm.getId());
1414-
if (cloneSettingVO != null){
1415-
if (! cloneSettingVO.getCloneType().equals(cloneType.toString())){
1416-
cloneSettingVO.setCloneType(cloneType.toString());
1417-
_vmCloneSettingDao.update(cloneSettingVO.getVmId(), cloneSettingVO);
1418-
}
1419-
}
1420-
else {
1421-
UserVmCloneSettingVO vmCloneSettingVO = new UserVmCloneSettingVO(vm.getId(), cloneType.toString());
1422-
_vmCloneSettingDao.persist(vmCloneSettingVO);
1412+
UserVmCloneSettingVO cloneSettingVO = _vmCloneSettingDao.findByVmId(vm.getId());
1413+
if (cloneSettingVO != null){
1414+
if (! cloneSettingVO.getCloneType().equals(cloneType.toString())){
1415+
cloneSettingVO.setCloneType(cloneType.toString());
1416+
_vmCloneSettingDao.update(cloneSettingVO.getVmId(), cloneSettingVO);
14231417
}
14241418
}
1425-
catch (Throwable e){
1426-
s_logger.debug("[NSX_PLUGIN_LOG] ERROR: " + e.getMessage());
1419+
else {
1420+
UserVmCloneSettingVO vmCloneSettingVO = new UserVmCloneSettingVO(vm.getId(), cloneType.toString());
1421+
_vmCloneSettingDao.persist(vmCloneSettingVO);
14271422
}
14281423
}
14291424

0 commit comments

Comments
 (0)