Skip to content

Commit

Permalink
fix: Human readable url
Browse files Browse the repository at this point in the history
  • Loading branch information
noahmmcgivern committed Sep 19, 2024
1 parent 9aee1cd commit 300b995
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/install/execution/terminal_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package execution
import (
"fmt"
"io"
"net/url"
"os"
"strings"

Expand Down Expand Up @@ -153,7 +154,9 @@ func (r TerminalStatusReporter) printFleetLink(status *InstallStatus) {
isSuperAgentRecipe := s.Name == types.SuperAgentRecipeName || s.Name == types.LoggingSuperAgentRecipeName

if s.Status == RecipeStatusTypes.INSTALLED && isSuperAgentRecipe {
linkToFleet := "https://one.newrelic.com/nr1-core?filters=%28domain%20%3D%20%27NR1%27%20AND%20type%20%3D%20%27FLEET%27%29"
linkToFleetRaw := "https://one.newrelic.com/nr1-core?filters=(domain = 'NR1' AND type = 'FLEET')"

linkToFleet := url.PathEscape(linkToFleetRaw)

fmt.Println()
fmt.Println("View you fleet at the link below")
Expand Down

0 comments on commit 300b995

Please sign in to comment.