Skip to content

Commit

Permalink
Change to check for fleet server enable not fleet enrollment. (elasti…
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse authored and yashtewari committed Jan 30, 2022
1 parent 46c7307 commit 05252b7
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 @@ -269,7 +269,7 @@ func runContainerCmd(streams *cli.IOStreams, cmd *cobra.Command, cfg setupConfig
return run(streams, logToStderr)
}

if cfg.Kibana.Fleet.Setup || cfg.Fleet.Enroll {
if cfg.Kibana.Fleet.Setup || cfg.FleetServer.Enable {
err = ensureServiceToken(streams, &cfg)
if err != nil {
return err
Expand Down

0 comments on commit 05252b7

Please sign in to comment.