Skip to content

Commit bc8e216

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-46 Testing: Protocol Type fetch issue
1 parent 3a7d2f8 commit bc8e216

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ private boolean validateProtocolSupportAndFetchHostsIdentifier(List<HostVO> host
361361
}
362362

363363
private AccessGroup createAccessGroupRequestByProtocol(StoragePoolVO storagePool, long scopeId, Map<String, String> details, List<String> hostsIdentifier) {
364-
ProtocolType protocol = ProtocolType.valueOf(details.get(Constants.PROTOCOL).toLowerCase());
364+
ProtocolType protocol = ProtocolType.valueOf(details.get(Constants.PROTOCOL).toUpperCase());
365365
String svmName = details.get(Constants.SVM_NAME);
366366
switch (protocol) {
367367
case ISCSI:
@@ -404,6 +404,7 @@ private AccessGroup createSANAccessGroupRequest(String svmName, String igroupNam
404404
igroup.setInitiators(initiators);
405405
}
406406
accessGroupRequest.setIgroup(igroup);
407+
s_logger.debug("createSANAccessGroupRequest: request: " + accessGroupRequest);
407408
return accessGroupRequest;
408409
}
409410

0 commit comments

Comments
 (0)