mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix response list on importVsphereStoragePoliciescmd
This commit is contained in:
parent
778148ba16
commit
233e665b34
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user