From 8d769e41a27d728c6be7abe70013460cebd5fc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Wed, 10 Mar 2021 12:38:33 +0100 Subject: [PATCH] fix: use proper flags (#868) --- e2e/_suites/fleet/installers.go | 2 +- e2e/_suites/fleet/services.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/_suites/fleet/installers.go b/e2e/_suites/fleet/installers.go index d6c05ba372..65954fe951 100644 --- a/e2e/_suites/fleet/installers.go +++ b/e2e/_suites/fleet/installers.go @@ -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 { diff --git a/e2e/_suites/fleet/services.go b/e2e/_suites/fleet/services.go index 9f555f802a..8f28dac492 100644 --- a/e2e/_suites/fleet/services.go +++ b/e2e/_suites/fleet/services.go @@ -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