mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
A lingering FIXME caused missing configuration from provider config blocks in the json output of terraform plan. This fixes the regression and adds a test. For the sake of testing, I added an optional attribute to the show test provider, which resulted in the providers schema test getting an update - not a bad addition, but we can always add a test-specific provider schema as needed.
42 lines
1.3 KiB
JSON
42 lines
1.3 KiB
JSON
{
|
|
"format_version": "0.1",
|
|
"provider_schemas": {
|
|
"registry.terraform.io/hashicorp/test": {
|
|
"provider": {
|
|
"version": 0,
|
|
"block": {
|
|
"attributes": {
|
|
"region": {
|
|
"description_kind": "plain",
|
|
"optional": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"description_kind": "plain"
|
|
}
|
|
},
|
|
"resource_schemas": {
|
|
"test_instance": {
|
|
"version": 0,
|
|
"block": {
|
|
"attributes": {
|
|
"ami": {
|
|
"type": "string",
|
|
"optional": true,
|
|
"description_kind": "plain"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"optional": true,
|
|
"computed": true,
|
|
"description_kind": "plain"
|
|
}
|
|
},
|
|
"description_kind": "plain"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|