File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/main/java/com/cloud/resource Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments