You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ts...@apache.org on 2022/10/07 03:48:04 UTC
[camel-k] 02/13: fix(platform) Incorrect order of parameters
This is an automated email from the ASF dual-hosted git repository.
tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 11ea8f6168bd335ab81e06b2fee6189209a81e19
Author: phantomjinx <p....@phantomjinx.co.uk>
AuthorDate: Fri Aug 12 23:22:47 2022 +0100
fix(platform) Incorrect order of parameters
---
pkg/platform/platform.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/platform/platform.go b/pkg/platform/platform.go
index 83acfc3c8..0f76690f6 100644
--- a/pkg/platform/platform.go
+++ b/pkg/platform/platform.go
@@ -100,7 +100,7 @@ func getOrFindAny(ctx context.Context, c k8sclient.Reader, namespace string, nam
// getOrFindLocal returns the named platform or any other platform in the local namespace.
func getOrFindLocal(ctx context.Context, c k8sclient.Reader, namespace string, name string, active bool) (*v1.IntegrationPlatform, error) {
if name != "" {
- return get(ctx, c, name, namespace)
+ return get(ctx, c, namespace, name)
}
return findLocal(ctx, c, namespace, active)