kestra-io / terraform-provider-kestra

https://kestra.io/docs/terraform/
Apache License 2.0
11 stars 10 forks source link

Create flow with keep_original_source = true leads to HTTP error 401 #84

Closed loicmathieu closed 1 year ago

loicmathieu commented 1 year ago

Expected Behavior

No error should be thrown

Actual Behaviour

Using the provider version 0.10 with Kestra 0.11

When switching a flow resource definition from keep_original_source = false to keep_original_source = true then the resource didn't work anymore with the error:

Error: status: 401, method: POST, body: {"message":"Unauthorized","_links":{"self":{"href":"/api/v1/flows"}}}

Steps To Reproduce

No response

Environment Information

Example flow

No response

loicmathieu commented 1 year ago

Seems to be not a real issue, with flow in YAML the namespace and id must be set, that's why the error was thrown.