diff --git a/x-pack/elastic-agent/pkg/config/operations/inspector.go b/x-pack/elastic-agent/pkg/config/operations/inspector.go index 6a0697e0684..35164ba649e 100644 --- a/x-pack/elastic-agent/pkg/config/operations/inspector.go +++ b/x-pack/elastic-agent/pkg/config/operations/inspector.go @@ -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)