Skip to content

Commit f10c86c

Browse files
author
Charly Molter
authored
Correct error in multi connector CLI (#15)
1 parent c003780 commit f10c86c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

examples/connector.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: conn1
2-
type: cloudevent
3-
with:
4-
filter: event.type == "foo"
1+
connectors:
2+
- name: conn1
3+
type: cloudevent
4+
with:
5+
filter: event.type == "foo"

pkg/koyeb/connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func createConnectors(cmd *cobra.Command, args []string) error {
150150

151151
if file != "" {
152152
log.Debugf("Loading file %s", file)
153-
err := loadMultiple(file, &all, "stacks")
153+
err := loadMultiple(file, &all, "connectors")
154154
if err != nil {
155155
er(err)
156156
}

0 commit comments

Comments
 (0)