Skip to content

Commit bb820f7

Browse files
CKS: fix creation on shared network if HA is enabled (#8588)
1 parent d15a074 commit bb820f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ private void validateKubernetesClusterCreateParameters(final CreateKubernetesClu
737737
if (network == null) {
738738
throw new InvalidParameterValueException(String.format("%s parameter must be specified along with %s parameter", ApiConstants.EXTERNAL_LOAD_BALANCER_IP_ADDRESS, ApiConstants.NETWORK_ID));
739739
}
740-
if (Network.GuestType.Shared.equals(network.getGuestType())) {
740+
if (!Network.GuestType.Shared.equals(network.getGuestType())) {
741741
throw new InvalidParameterValueException(String.format("%s parameter must be specified along with %s type of network", ApiConstants.EXTERNAL_LOAD_BALANCER_IP_ADDRESS, Network.GuestType.Shared.toString()));
742742
}
743743
}

0 commit comments

Comments
 (0)