Skip to content

Commit 8ce28e7

Browse files
committed
fix lint
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent daac0d9 commit 8ce28e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/java/com/cloud/resource/ResourceManagerImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,11 +1215,11 @@ public Cluster updateCluster(UpdateClusterCmd cmd) {
12151215
}
12161216

12171217
if (arch != null) {
1218-
List<CPU.CPUArch> archTypes = _hostDao.listDistinctArchTypes(cluster.getId());
1219-
if (archTypes.stream().anyMatch(a -> !a.equals(arch))) {
1218+
List<CPU.CPUArch> architectureTypes = _hostDao.listDistinctArchTypes(cluster.getId());
1219+
if (architectureTypes.stream().anyMatch(a -> !a.equals(arch))) {
12201220
throw new InvalidParameterValueException(String.format(
12211221
"Cluster has host(s) present with arch type(s): %s",
1222-
StringUtils.join(archTypes.stream().map(CPU.CPUArch::getType).toArray())));
1222+
StringUtils.join(architectureTypes.stream().map(CPU.CPUArch::getType).toArray())));
12231223
}
12241224
cluster.setArch(arch.getType());
12251225
doUpdate = true;

0 commit comments

Comments
 (0)