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

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


The following commit(s) were added to refs/heads/master by this push:
     new f102fab  Fix #645: use the right kind of sink in knative trait
f102fab is described below

commit f102fab4f773eb75b974761daff0a90f624b7ae2
Author: nferraro <ni.ferr...@gmail.com>
AuthorDate: Tue May 7 17:16:20 2019 -0400

    Fix #645: use the right kind of sink in knative trait
---
 pkg/trait/knative.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/trait/knative.go b/pkg/trait/knative.go
index 6c4da5d..7436f67 100644
--- a/pkg/trait/knative.go
+++ b/pkg/trait/knative.go
@@ -71,7 +71,7 @@ func (t *knativeTrait) Configure(e *Environment) (bool, 
error) {
 
                        t.ChannelSources = strings.Join(items, ",")
                }
-               if t.EndpointSinks == "" {
+               if t.ChannelSinks == "" {
                        items := make([]string, 0)
 
                        metadata.Each(e.CamelCatalog, 
e.Integration.Spec.Sources, func(_ int, meta metadata.IntegrationMetadata) bool 
{
@@ -79,7 +79,7 @@ func (t *knativeTrait) Configure(e *Environment) (bool, 
error) {
                                return true
                        })
 
-                       t.EndpointSinks = strings.Join(items, ",")
+                       t.ChannelSinks = strings.Join(items, ",")
                }
                if t.EndpointSources == "" {
                        items := make([]string, 0)

Reply via email to