Skip to content

Commit

Permalink
Fix isNull -> isUnknown in google idp
Browse files Browse the repository at this point in the history
Signed-off-by: John Strunk <[email protected]>
  • Loading branch information
JohnStrunk authored and openshift-merge-robot committed Sep 20, 2023
1 parent 1212cf7 commit 767210a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/identityprovider/google.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func googleHostedDomainValidator() validator.String {
errSumm := "Invalid Google IDP resource configuration"
return attrvalidators.NewStringValidator("", func(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse) {
hostedDomain := req.ConfigValue
if !hostedDomain.IsNull() && !hostedDomain.IsNull() && !common.IsValidDomain(hostedDomain.ValueString()) {
if !hostedDomain.IsNull() && !hostedDomain.IsUnknown() && !common.IsValidDomain(hostedDomain.ValueString()) {
resp.Diagnostics.AddAttributeError(req.Path, errSumm,
fmt.Sprintf("Expected a valid Google hosted_domain. Got %v",
hostedDomain.ValueString()))
Expand Down

0 comments on commit 767210a

Please sign in to comment.