INNER CODE UNIT · Go
reportMissingProducts
theopenlane/core · cmd/catalog/reconcile/main.go:319
func reportMissingProducts(ctx context.Context, c *cli.Command) error {
recon, err := createReconciler(c)
if err != nil {
return err
}
catalogPath := c.String("catalog")
report, err := recon.ReportSubscriptionsWithMissingProducts(ctx, catalogPath)
if err != nil {
return err
}
if len(report) == 0 {
fmt.Println("All active subscriptions have products that exist in the catalog")
return nil
}
fmt.Printf("Found %d subscriptions with missing products\n", len(report))