mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-3877 Unable to Resize Volume (kvm, vmware)
This commit is contained in:
parent
8edf6b3467
commit
63fea5e94e
@ -241,7 +241,12 @@ public class VolumeDaoImpl extends GenericDaoBase<VolumeVO, Long> implements Vol
|
|||||||
pstmt.setLong(1, volumeId);
|
pstmt.setLong(1, volumeId);
|
||||||
ResultSet rs = pstmt.executeQuery();
|
ResultSet rs = pstmt.executeQuery();
|
||||||
if (rs.next()) {
|
if (rs.next()) {
|
||||||
return HypervisorType.getType(rs.getString(1));
|
String hypervisor;
|
||||||
|
if (rs.getString(1) != null)
|
||||||
|
hypervisor = rs.getString(1);
|
||||||
|
else
|
||||||
|
hypervisor = rs.getString(2);
|
||||||
|
return HypervisorType.getType(hypervisor);
|
||||||
}
|
}
|
||||||
return HypervisorType.None;
|
return HypervisorType.None;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user