diff --git a/x-pack/elastic-agent/pkg/config/operations/inspector.go b/x-pack/elastic-agent/pkg/config/operations/inspector.go index 6a0697e06846..35164ba649ee 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)