mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
58bcc2e9bb
* addrs: detect builtin provider when parsing legacy provider string The ParseLegacyAbsProviderConfig was not detecting builtin providers ("terraform"), which caused issues for all users with 0.12 state and the "terraform_remote_state" data source. Since "terraform" is the only built-in provider this adds a very simple check to the parser so it properly returns the builtin FQN. * add tests to the addrs package
75 lines
2.1 KiB
JSON
75 lines
2.1 KiB
JSON
{
|
|
"version": 4,
|
|
"serial": 0,
|
|
"lineage": "f2968801-fa14-41ab-a044-224f3a4adf04",
|
|
"terraform_version": "0.12.0",
|
|
"outputs": {
|
|
"numbers": {
|
|
"type": "string",
|
|
"value": "0,1"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"mode": "data",
|
|
"type": "terraform_remote_state",
|
|
"name": "random",
|
|
"provider": "provider.terraform",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes_flat": {
|
|
"backend": "remote"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "bar",
|
|
"provider": "provider.null",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes_flat": {
|
|
"id": "5388490630832483079",
|
|
"triggers.%": "1",
|
|
"triggers.whaaat": "0,1"
|
|
},
|
|
"depends_on": [
|
|
"null_resource.foo"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "null_resource",
|
|
"name": "foo",
|
|
"provider": "provider.null",
|
|
"each": "list",
|
|
"instances": [
|
|
{
|
|
"index_key": 0,
|
|
"schema_version": 0,
|
|
"attributes_flat": {
|
|
"id": "8212585058302700791",
|
|
"triggers.%": "1",
|
|
"triggers.what": "0"
|
|
}
|
|
},
|
|
{
|
|
"index_key": 1,
|
|
"schema_version": 0,
|
|
"attributes_flat": {
|
|
"id": "1523897709610803586",
|
|
"triggers.%": "1",
|
|
"triggers.what": "0"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|