Closed vkumbha closed 9 months ago
@vkumbha I believe this was resolved in commit https://github.com/turbot/flowpipe/commit/fed7a5ddfa207f1625115636813d24dea3afc23d - can you retest on a more recent build if you still experience these issues?
@graza-io I can confirm this is working in Flowpipe v0.1.0-beta.202312041337
. Closing the issue, Thank you!
@graza-io I face an error with this again. Below is my pipeline, if you try for the below pipeline it fails with the error. If you uncomment the documentation = file("./docs/index.md")
it works fine.
$ flowpipe pipeline list --output yaml
Error: Error when printing - [1:2] unterminated flow mapping
> 1 | [{"name":"local.pipeline.get_astronauts","description":"Get astronauts in space right now.","mod":"mod.local","title":"Get Astronauts","documentation":
^
pipeline "get_astronauts" {
title = "Get Astronauts"
description = "Get astronauts in space right now."
documentation = file("./docs/index.md")
param "url" {
type = string
default = "http://api.open-notify.org/astros"
}
step "http" "whos_in_space" {
url = param.url
method = "get"
}
output "people_in_space" {
description = "List of people in space right now."
value = step.http.whos_in_space.response_body.people[*].name
sensitive = true
}
}
Works fine on latest version Flowpipe v0.1.0-beta.202312061547
. Thanks for fixing it!
cli version:
Flowpipe v0.1.0-beta.202312010239
flowpipe pipeline list --output yaml throws below error
The outputs
json
andtable
work but yaml throws an error.json:
table