Skip to content

Commit

Permalink
[Elastic Agent] Fix fleet-server insecure flag
Browse files Browse the repository at this point in the history
When using FLEET_SERVER_INSECURE_HTTP=1 it tried to set the flag `--fleet-server--insecure-http` which does not exist. Instead it should be `--fleet-server-insecure-http`.
  • Loading branch information
ruflin committed Mar 5, 2021
1 parent 5f4a5e6 commit edc715d
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 edc715d

Please sign in to comment.