Skip to content

Commit 393720a

Browse files
committed
remove id req.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 0c1969a commit 393720a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

api/src/main/java/org/apache/cloudstack/api/command/user/backup/ListBackupOfferingsCmd.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public Long getPolicyId() {
7878

7979
@Override
8080
public void execute() throws ResourceUnavailableException, ServerApiException, ConcurrentOperationException {
81-
validateParameters();
8281
try {
8382
final List<BackupOffering> backupOfferings = backupManager.listBackupOfferings(getZoneId(), getPolicyId());
8483
setupResponseBackupOfferingsList(backupOfferings);
@@ -89,12 +88,6 @@ public void execute() throws ResourceUnavailableException, ServerApiException, C
8988
}
9089
}
9190

92-
private void validateParameters() {
93-
if (getZoneId() == null) {
94-
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, "Please provide a valid zone ID");
95-
}
96-
}
97-
9891
@Override
9992
public String getCommandName() {
10093
return APINAME.toLowerCase() + RESPONSE_SUFFIX;

0 commit comments

Comments
 (0)