Skip to content

Commit 5802f44

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-29 Remove Component Annotation from datastoredriverclass
1 parent 287a8b0 commit 5802f44

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import java.util.HashMap;
4545
import java.util.Map;
4646

47-
@Component
4847
public class OntapPrimaryDatastoreDriver implements PrimaryDataStoreDriver {
4948

5049
private static final Logger s_logger = (Logger)LogManager.getLogger(OntapPrimaryDatastoreDriver.class);

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/feign/client/AggregateFeignClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import org.apache.cloudstack.storage.feign.model.Aggregate;
2323
import org.apache.cloudstack.storage.feign.FeignConfiguration;
24+
import org.apache.cloudstack.storage.feign.model.response.OnTapResponse;
2425
import org.springframework.cloud.openfeign.FeignClient;
2526
import org.springframework.context.annotation.Lazy;
2627
import org.springframework.web.bind.annotation.PathVariable;
@@ -35,7 +36,7 @@
3536
public interface AggregateFeignClient {
3637

3738
@RequestMapping(method=RequestMethod.GET)
38-
AggregateResponse getAggregateResponse(URI baseURL, @RequestHeader("Authorization") String header);
39+
OnTapResponse<Aggregate> getAggregateResponse(URI baseURL, @RequestHeader("Authorization") String header);
3940

4041
@RequestMapping(method=RequestMethod.GET, value="/{uuid}")
4142
Aggregate getAggregateByUUID(URI baseURL,@RequestHeader("Authorization") String header, @PathVariable(name = "uuid", required = true) String uuid);

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/feign/client/SvmFeignClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import org.apache.cloudstack.storage.feign.FeignConfiguration;
2323
import org.apache.cloudstack.storage.feign.model.Svm;
24+
import org.apache.cloudstack.storage.feign.model.response.OnTapResponse;
2425
import org.springframework.cloud.openfeign.FeignClient;
2526
import org.springframework.web.bind.annotation.RequestHeader;
2627
import org.springframework.web.bind.annotation.RequestMapping;
@@ -32,7 +33,7 @@
3233
public interface SvmFeignClient {
3334

3435
@RequestMapping(method = RequestMethod.GET)
35-
SvmResponse getSvmResponse(URI baseURL, @RequestHeader("Authorization") String header);
36+
OnTapResponse<Svm> getSvmResponse(URI baseURL, @RequestHeader("Authorization") String header);
3637

3738
@RequestMapping(method = RequestMethod.GET, value = "/{uuid}")
3839
Svm getSvmByUUID(URI baseURL, @RequestHeader("Authorization") String header);

0 commit comments

Comments
 (0)