Skip to content

Commit

Permalink
[Ingest Manager] Uninstall do not fail on state not present (#24290)
Browse files Browse the repository at this point in the history
[Ingest Manager] Uninstall do not fail on state not present (#24290)
  • Loading branch information
michalpristas authored Mar 2, 2021
1 parent fe26537 commit f4b6a49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/elastic-agent/pkg/config/operations/inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ func LoadFullAgentConfig(cfgPath string) (*config.Config, error) {
if err != nil {
return nil, err
} else if fleetConfig == nil {
return nil, fmt.Errorf("no fleet config retrieved yet")
// resolving fleet config but not fleet config retrieved yet, returning last applied config
return rawConfig, nil
}

return config.NewConfigFrom(fleetConfig)
Expand Down

0 comments on commit f4b6a49

Please sign in to comment.