Skip to content

Commit

Permalink
fix: ensure the cli and ui flow for custom domains match
Browse files Browse the repository at this point in the history
  • Loading branch information
Crispy1975 authored and sweatybridge committed Sep 23, 2024
1 parent d4b920a commit 5701583
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/hostnames/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ Please ensure that your custom domain is set up as a CNAME record to your Supaba
if err != nil {
return "", errors.Errorf("failed to deserialize body: %w", err)
}
owner := res.Result.OwnershipVerification
ssl := res.Result.Ssl.ValidationRecords
if res.Result.Ssl.Status == "initializing" {
return appendRawOutputIfNeeded("Custom hostname setup is being initialized; please request re-verification in a few seconds.\n", response, includeRawOutput), nil
Expand All @@ -124,9 +123,6 @@ Please ensure that your custom domain is set up as a CNAME record to your Supaba
return "", errors.Errorf("expected a single SSL verification record, received: %+v", ssl)
}
records := ""
if owner.Name != "" {
records = fmt.Sprintf("\n\t%s TXT -> %s", owner.Name, owner.Value)
}
if ssl[0].TxtName != "" {
records = fmt.Sprintf("%s\n\t%s TXT -> %s", records, ssl[0].TxtName, ssl[0].TxtValue)
}
Expand Down

0 comments on commit 5701583

Please sign in to comment.