You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2022/01/25 08:17:33 UTC

[camel-k] branch main updated: fix: Fix number of found deployments in dump

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 4d81e5a  fix: Fix number of found deployments in dump
4d81e5a is described below

commit 4d81e5ae68d43b552374d11479c3dd4b79779c92
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Mon Jan 24 19:50:50 2022 +0100

    fix: Fix number of found deployments in dump
---
 pkg/cmd/dump.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/cmd/dump.go b/pkg/cmd/dump.go
index 9fa2242..902a167 100644
--- a/pkg/cmd/dump.go
+++ b/pkg/cmd/dump.go
@@ -138,7 +138,7 @@ func dumpNamespace(ctx context.Context, c client.Client, ns string, out io.Write
 	if err != nil {
 		return err
 	}
-	fmt.Fprintf(out, "Found %d deployments:\n", len(iks.Items))
+	fmt.Fprintf(out, "Found %d deployments:\n", len(deployments.Items))
 	for _, deployment := range deployments.Items {
 		ref := deployment
 		data, err := kubernetes.ToYAML(&ref)