Skip to content

Commit

Permalink
Fix FLEET_SERVER_INSECURE_HTTP to use correct parameter on bootstrap. (
Browse files Browse the repository at this point in the history
…#24386) (#24398)

(cherry picked from commit ea4cb94)
  • Loading branch information
blakerouse authored Mar 5, 2021
1 parent 07823b0 commit 85f7e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/elastic-agent/pkg/agent/cmd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func buildEnrollArgs(token string, policyID string) ([]string, error) {
args = append(args, "--fleet-server-cert-key", certKey)
}
if envBool("FLEET_SERVER_INSECURE_HTTP") {
args = append(args, "--fleet-server--insecure-http")
args = append(args, "--fleet-server-insecure-http")
args = append(args, "--insecure")
}
} else {
Expand Down

0 comments on commit 85f7e8c

Please sign in to comment.