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

Block AzAPI provider >= 2.0.0 #30

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Block AzAPI provider >= 2.0.0 #30

merged 1 commit into from
Sep 25, 2024

Conversation

jkroepke
Copy link
Member

azure/azapi introduced a breaking change in 2.0 where JSON output is replaced by native HCL output.

Since the output type is changes from string to complex, jsondecode does not longer work

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: Invalid function argument
│ 
│   on .terraform/modules/vm-relc-a-p-1/d-image.tf line 52, in locals:
│   52:     jsondecode(one(data.azapi_resource_list.virtual_machine_images[*].output)) :
│     ├────────────────
│     │ while calling jsondecode(str)
│     │ data.azapi_resource_list.virtual_machine_images is tuple with 1 element
│ 
│ Invalid value for "str" parameter: string required.
╵

Error: Process completed with exit code 1.

Signed-off-by: Jan-Otto Kröpke <joe@cloudeteer.de>
@jkroepke
Copy link
Member Author

This is just an preventive fix, since 2.0.0 is not GA yet.

@jkroepke jkroepke closed this Sep 24, 2024
@jkroepke jkroepke reopened this Sep 24, 2024
@rswrz rswrz changed the title block azapi 2.0.0 Block AzAPI provider >= 2.0.0 Sep 25, 2024
@rswrz rswrz merged commit 0310def into main Sep 25, 2024
30 of 31 checks passed
@rswrz rswrz deleted the az-api branch September 25, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants