Skip to content

Commit 08acb33

Browse files
authored
Update AccountJoinDaoImpl.java
1 parent 0e2abab commit 08acb33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/java/com/cloud/api/query/dao/AccountJoinDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public void setResourceLimits(AccountJoinVO account, boolean fullView, ResourceL
172172
response.setSnapshotTotal(snapshotTotal);
173173
response.setSnapshotAvailable(snapshotAvail);
174174

175-
Long vmSnapshotLimit = ApiDBUtils.findCorrectResourceLimit(account.getVmSnapshotLimit(), account.getId(), ResourceType.vm_snapshot);
175+
Long vmSnapshotLimit = ApiDBUtils.findCorrectResourceLimit(account.getVmSnapshotLimit(), account.getId(), ResourceType.instance_snapshot);
176176
String vmSnapshotLimitDisplay = (fullView || vmSnapshotLimit == -1) ? Resource.UNLIMITED : String.valueOf(vmSnapshotLimit);
177177
Long vmSnapshotTotal = (account.getVmSnapshotTotal() == null) ? 0 : account.getVmSnapshotTotal();
178178
String snapshotAvailable = (fullView || vmSnapshotLimit == -1) ? Resource.UNLIMITED : String.valueOf(vmSnapshotLimit - vmSnapshotTotal);

0 commit comments

Comments
 (0)