Skip to content

Commit

Permalink
CKS: fix creation on shared network if HA is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Feb 1, 2024
1 parent b34f093 commit ee0abd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ private void validateKubernetesClusterCreateParameters(final CreateKubernetesClu
if (network == null) {
throw new InvalidParameterValueException(String.format("%s parameter must be specified along with %s parameter", ApiConstants.EXTERNAL_LOAD_BALANCER_IP_ADDRESS, ApiConstants.NETWORK_ID));
}
if (Network.GuestType.Shared.equals(network.getGuestType())) {
if (!Network.GuestType.Shared.equals(network.getGuestType())) {
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()));
}
}
Expand Down

0 comments on commit ee0abd9

Please sign in to comment.