Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
simitt committed Mar 11, 2021
1 parent e1a57fa commit 1a268d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker/apm-server/managed/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ func setupManagedAPM() error {
if err != nil {
return err
}
if apmPkg == nil {
return errors.New("no apm package found")
}
fmt.Println("apm package fetched")

// define expected APM package policy
Expand Down Expand Up @@ -189,7 +186,7 @@ func (client *kibanaClient) getAPMPackage() (*eprPackage, error) {
return &apm.Package, err

}
return nil, nil
return nil, errors.New("no apm package found")
}

func (client *kibanaClient) getAgentPolicies(query string) ([]agentPolicy, error) {
Expand Down

0 comments on commit 1a268d2

Please sign in to comment.