diff --git a/plan/plan.go b/plan/plan.go index 4488c9e2ff..bd0ec209e3 100644 --- a/plan/plan.go +++ b/plan/plan.go @@ -241,11 +241,11 @@ func (p *Plan) Calculate() *Plan { if ownersMatch { changes.Create = append(changes.Create, creates...) } else { -if log.GetLevel() == log.DebugLevel { - for _, current := range row.current { - log.Debugf(`Skipping endpoint %v because owner id does not match for one or more items to create, found: "%s", required: "%s"`, current, current.Labels[endpoint.OwnerLabelKey], p.OwnerID) - } -} + if log.GetLevel() == log.DebugLevel { + for _, current := range row.current { + log.Debugf(`Skipping endpoint %v because owner id does not match for one or more items to create, found: "%s", required: "%s"`, current, current.Labels[endpoint.OwnerLabelKey], p.OwnerID) + } + } } } }