Skip to content

Commit 6bb3755

Browse files
committed
Log implicitly enabled caps only when existing
1 parent def90a6 commit 6bb3755

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cli/admin/release/extract_tools.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,9 @@ func (mr *ManifestReceiver) TarEntryCallbackDoneCallback() error {
12501250
delta = delta.Difference(sets.New[configv1.ClusterVersionCapability](mr.inclusionConfiguration.Capabilities.EnabledCapabilities...))
12511251
enabled.Insert(mr.inclusionConfiguration.Capabilities.EnabledCapabilities...)
12521252
}
1253-
klog.Infof("Those capabilities become implicitly enabled for the incoming release %s", sets.List(delta))
1253+
if delta.Len() > 0 {
1254+
klog.Infof("Those capabilities become implicitly enabled for the incoming release %s", sets.List(delta))
1255+
}
12541256

12551257
mr.enabled = enabled.UnsortedList()
12561258
mr.enabledResolved = true

0 commit comments

Comments
 (0)