Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DaVinci Export JSON contains unknown properties warning on validate/plan, describing "Save flow variable nodes are present but missing variable values" #362

Closed
patrickcping opened this issue Aug 21, 2024 · 1 comment · Fixed by #363
Assignees
Labels
status/triaged The issue/PR has completed initial triage and needs assignment type/bug Something isn't working
Milestone

Comments

@patrickcping
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

DaVinci Terraform provider Version

Terraform Version

v0.4.1

Affected Resource(s)

  • davinci_flow

Terraform Configuration Files

# Copy-paste your DaVinci related Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

# Remember to replace any account/customer sensitive information in the configuration before submitting the issue

# NOTE: PLEASE DO NOT share DaVinci JSON exports publicly without encrypting files first.  DaVinci JSON exports can contain environment/tenant specific information, and may also include secrets.
resource "davinci_flow" "lfwgfppqrp" {
  environment_id = pingone_environment.lfwgfppqrp.id

  name        = "lfwgfppqrp"
  description = "lfwgfppqrp description"

  flow_json = file("./flows/lfwgfppqrp.json")

  # connection_link and subflow_link fields present
}

Debug Output

Warning: DaVinci Export JSON contains unknown properties

 with davinci_flow.lfwgfppqrp,
 on davinci.tf line 514, in resource "davinci_flow" "lfwgfppqrp":
 514: flow_json = file("./flows/lfwgfppqrp.json")

 Save flow variable nodes are present but are missing variable values in the
 DaVinci Flow Export JSON. Please re-export the DaVinci flow ensuring that
 variable values are included.

Panic Output

N/a

Expected Behavior

No warning, flow exported with variable values

Actual Behavior

Warning as shown. Apply is not impacted

Steps to Reproduce

  1. terraform validate
  2. terraform plan

Important Factoids

References

  • GH-1234
@patrickcping patrickcping added type/bug Something isn't working status/triaged The issue/PR has completed initial triage and needs assignment labels Aug 21, 2024
@patrickcping patrickcping added this to the v0.4.2 milestone Aug 21, 2024
@patrickcping patrickcping self-assigned this Aug 21, 2024
@patrickcping
Copy link
Contributor Author

The critical combination is that the error title is warning about unknown properties, yet the error message describes missing flow variable values. The message seemly conflicts with the title.

Found to be a false positive during the terraform validate step and does not change the outcome of the terraform plan step. terraform apply is unaffected and therefore the warning is safe to ignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triaged The issue/PR has completed initial triage and needs assignment type/bug Something isn't working
Projects
None yet
1 participant