Skip to content

Commit 15081b5

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-46 Change method name
1 parent 815af83 commit 15081b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public boolean attachCluster(DataStore dataStore, ClusterScope scope) {
274274
StorageStrategy strategy = Utility.getStrategyByStoragePoolDetails(details);
275275
ProtocolType protocol = ProtocolType.valueOf(details.get(Constants.PROTOCOL));
276276
//TODO- Check if we have to handle heterogeneous host within the cluster
277-
if (!validateProtocolSupportAndFetchHostsIndentifier(hostsToConnect, protocol, hostsIdentifier)) {
277+
if (!validateProtocolSupportAndFetchHostsIdentifier(hostsToConnect, protocol, hostsIdentifier)) {
278278
s_logger.error("attachCluster: Not all hosts in the cluster support the protocol: " + protocol.name());
279279
throw new CloudRuntimeException("attachCluster: Not all hosts in the cluster support the protocol: " + protocol.name());
280280
}
@@ -323,7 +323,7 @@ public boolean attachZone(DataStore dataStore, ZoneScope scope, Hypervisor.Hyper
323323
StorageStrategy strategy = Utility.getStrategyByStoragePoolDetails(details);
324324
ProtocolType protocol = ProtocolType.valueOf(details.get(Constants.PROTOCOL));
325325
//TODO- Check if we have to handle heterogeneous host within the zone
326-
if (!validateProtocolSupportAndFetchHostsIndentifier(hostsToConnect, protocol, hostsIdentifier)) {
326+
if (!validateProtocolSupportAndFetchHostsIdentifier(hostsToConnect, protocol, hostsIdentifier)) {
327327
s_logger.error("attachZone: Not all hosts in the zone support the protocol: " + protocol.name());
328328
throw new CloudRuntimeException("attachZone: Not all hosts in the zone support the protocol: " + protocol.name());
329329
}
@@ -342,7 +342,7 @@ public boolean attachZone(DataStore dataStore, ZoneScope scope, Hypervisor.Hyper
342342
return true;
343343
}
344344

345-
private boolean validateProtocolSupportAndFetchHostsIndentifier(List<HostVO> hosts, ProtocolType protocolType, List<String> hostIdentifiers) {
345+
private boolean validateProtocolSupportAndFetchHostsIdentifier(List<HostVO> hosts, ProtocolType protocolType, List<String> hostIdentifiers) {
346346
switch (protocolType) {
347347
case ISCSI:
348348
String protocolPrefix = Constants.IQN;
@@ -355,7 +355,7 @@ private boolean validateProtocolSupportAndFetchHostsIndentifier(List<HostVO> hos
355355
}
356356
break;
357357
default:
358-
throw new CloudRuntimeException("isProtocolSupportedByAllHosts : Unsupported protocol: " + protocolType.name());
358+
throw new CloudRuntimeException("validateProtocolSupportAndFetchHostsIdentifier : Unsupported protocol: " + protocolType.name());
359359
}
360360
return true;
361361
}

0 commit comments

Comments
 (0)