Fix response list on importVsphereStoragePoliciescmd

This commit is contained in:
Harikrishna Patnala 2020-07-07 02:13:24 +05:30
parent 778148ba16
commit 233e665b34

View File

@ -19,7 +19,6 @@ package org.apache.cloudstack.api.command.admin.zone;
import com.cloud.dc.DataCenter;
import com.cloud.dc.VsphereStoragePolicy;
import com.cloud.event.EventTypes;
import com.cloud.exception.ConcurrentOperationException;
import com.cloud.exception.InsufficientCapacityException;
import com.cloud.exception.NetworkRuleConflictException;
@ -31,7 +30,6 @@ import org.apache.cloudstack.acl.RoleType;
import org.apache.cloudstack.api.APICommand;
import org.apache.cloudstack.api.ApiConstants;
import org.apache.cloudstack.api.ApiErrorCode;
import org.apache.cloudstack.api.BaseAsyncCmd;
import org.apache.cloudstack.api.BaseCmd;
import org.apache.cloudstack.api.Parameter;
import org.apache.cloudstack.api.ServerApiException;
@ -49,7 +47,7 @@ import java.util.List;
responseObject = ImportVsphereStoragePoliciesResponse.class,
requestHasSensitiveInfo = false, responseHasSensitiveInfo = false,
authorized = {RoleType.Admin})
public class ImportVsphereStoragePoliciesCmd extends BaseAsyncCmd {
public class ImportVsphereStoragePoliciesCmd extends BaseCmd {
public static final Logger s_logger = Logger.getLogger(ImportVsphereStoragePoliciesCmd.class.getName());
@ -62,16 +60,6 @@ public class ImportVsphereStoragePoliciesCmd extends BaseAsyncCmd {
description = "ID of the zone")
private Long zoneId;
@Override
public String getEventType() {
return EventTypes.EVENT_IMPORT_VCENTER_STORAGE_POLICIES;
}
@Override
public String getEventDescription() {
return "Importing vSphere Storage Policies";
}
@Override
public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException, NetworkRuleConflictException {
final DataCenter dataCenter = _resourceService.getZone(getZoneId());