Skip to content

Commit

Permalink
Set User object in alertmanager url.
Browse files Browse the repository at this point in the history
  • Loading branch information
limscoder committed Mar 12, 2018
1 parent 6ebfb88 commit 34b203f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ func (s ByAlphabetical) Less(i, j int) bool {
}

func GetAlertmanagerURL(p string) url.URL {
return url.URL{
Scheme: (*alertmanagerUrl).Scheme,
Host: (*alertmanagerUrl).Host,
Path: path.Join((*alertmanagerUrl).Path, p),
}
amURL := **alertmanagerUrl
amURL.Path = path.Join((*alertmanagerUrl).Path, p)
return amURL
}

// Parse a list of labels (cli arguments)
Expand Down

0 comments on commit 34b203f

Please sign in to comment.