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

Commit

Permalink
fix: use proper flags (#868) (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya authored Mar 10, 2021
1 parent cda922e commit 8384ea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/_suites/fleet/installers.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ func NewTARPackage(binaryName string, profile string, image string, service stri
func (i *TARPackage) Install(containerName string, token string) error {
// install the elastic-agent to /usr/bin/elastic-agent using command
binary := fmt.Sprintf("/elastic-agent/%s", i.artifact)
args := []string{"--force", "--insecure", "--enrollment-token", token, "--kibana-url", "http://kibana:5601"}
args := []string{"--force", "--insecure", "--enrollment-token=" + token, "--kibana-url", "http://kibana:5601"}

err := runElasticAgentCommand(i.profile, i.image, i.service, binary, "install", args)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion e2e/_suites/fleet/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (i *ElasticAgentInstaller) listElasticAgentWorkingDirContent(containerName
}

func buildEnrollmentFlags(token string) []string {
return []string{"--url=http://kibana:5601", "--enrollment-token=" + token, "-f", "--insecure"}
return []string{"--kibana-url=http://kibana:5601", "--enrollment-token=" + token, "-f", "--insecure"}
}

// runElasticAgentCommand runs a command for the elastic-agent
Expand Down

0 comments on commit 8384ea6

Please sign in to comment.