Skip to content

Commit 3e3aa15

Browse files
fix merge
1 parent c381be2 commit 3e3aa15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/pkg/agent/cmd/inspect.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ func inspectConfig(ctx context.Context, cfgPath string, opts inspectConfigOpts,
189189
binaryMapping[component.ID] = component.BinaryName()
190190
}
191191
}
192-
// TODO: how do we handle endpoint config?
193192
monitorCfg, err := monitorFn(cfg, components, binaryMapping, map[string]uint64{})
194193
if err != nil {
195194
return fmt.Errorf("failed to get monitoring config: %w", err)
@@ -352,7 +351,7 @@ func getComponentsFromPolicy(ctx context.Context, l *logger.Logger, cfgPath stri
352351
}
353352

354353
// Compute the components from the computed configuration.
355-
comps, err := specs.ToComponents(m, monitorFn, lvl, agentInfo)
354+
comps, err := specs.ToComponents(m, monitorFn, lvl, agentInfo, map[string]uint64{})
356355
if err != nil {
357356
return nil, fmt.Errorf("failed to render components: %w", err)
358357
}

0 commit comments

Comments
 (0)