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 7d2990a  fix(yaml): also consider toD while parsing YAML DSL steps
7d2990a is described below

commit 7d2990a2de88d7890603e5476cc71680ee88435c
Author: Toon Albers <45094749+toonalb...@users.noreply.github.com>
AuthorDate: Fri Feb 4 15:57:45 2022 +0100

    fix(yaml): also consider toD while parsing YAML DSL steps
---
 pkg/util/source/inspector_yaml.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/util/source/inspector_yaml.go 
b/pkg/util/source/inspector_yaml.go
index bf2bc61..dbbd0d5 100644
--- a/pkg/util/source/inspector_yaml.go
+++ b/pkg/util/source/inspector_yaml.go
@@ -161,7 +161,7 @@ func (i YAMLInspector) parseStep(key string, content 
interface{}, meta *Metadata
                switch key {
                case "from":
                        meta.FromURIs = append(meta.FromURIs, maybeURI)
-               case "to", "to-d":
+               case "to", "to-d", "toD":
                        meta.ToURIs = append(meta.ToURIs, maybeURI)
                }
        }

Reply via email to