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

fix: use proper flags (#868) backport for 7.12.x #871

Merged
merged 1 commit into from
Mar 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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