File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4242import org .apache .logging .log4j .LogManager ;
4343import org .apache .logging .log4j .Logger ;
4444
45+ import java .util .HashMap ;
4546import java .util .List ;
4647import java .util .Map ;
4748import java .util .Objects ;
@@ -287,14 +288,15 @@ public String getNetworkInterface() {
287288 // Feign call to get network interfaces
288289 String authHeader = Utility .generateAuthHeader (storage .getUsername (), storage .getPassword ());
289290 try {
290- Map <String , Object > queryParams = Map .of (Constants .SVMNAME , storage .getSvmName ());
291+ Map <String , Object > queryParams = new HashMap <>();
292+ queryParams .put (Constants .SVMDOTNAME , storage .getSvmName ());
291293 if (storage .getProtocol () != null ) {
292294 switch (storage .getProtocol ()) {
293295 case NFS3 :
294- queryParams = Map . of (Constants .SERVICES , Constants .DATA_NFS );
296+ queryParams . put (Constants .SERVICES , Constants .DATA_NFS );
295297 break ;
296298 case ISCSI :
297- queryParams = Map . of (Constants .SERVICES , Constants .DATA_ISCSI );
299+ queryParams . put (Constants .SERVICES , Constants .DATA_ISCSI );
298300 break ;
299301 default :
300302 s_logger .error ("Unsupported protocol: " + storage .getProtocol ());
Original file line number Diff line number Diff line change 1919
2020package org .apache .cloudstack .storage .utils ;
2121
22- import org .opensaml .xml .encryption .Public ;
2322
2423public class Constants {
2524
@@ -53,7 +52,7 @@ public class Constants {
5352 public static final String FIELDS = "fields" ;
5453 public static final String AGGREGATES = "aggregates" ;
5554 public static final String STATE = "state" ;
56- public static final String SVMNAME = "svm.name" ;
55+ public static final String SVMDOTNAME = "svm.name" ;
5756 public static final String DATA_NFS = "data_nfs" ;
5857 public static final String DATA_ISCSI = "data_iscsi" ;
5958 public static final String IP_ADDRESS = "ip.address" ;
You can’t perform that action at this time.
0 commit comments