remove id from generated config

turns out the invalid id attributes were captured in the command test,
so removing them caused that to fail too.
pull/37713/head
James Bardin 7 months ago
parent 82889ae987
commit 9c2b2c579a

@ -536,7 +536,7 @@ func TestQuery_JSON(t *testing.T) {
"ami": "ami-12345",
"id": "test-instance-1",
},
"config": "resource \"test_instance\" \"example_0\" {\n provider = test\n ami = \"ami-12345\"\n id = \"test-instance-1\"\n}",
"config": "resource \"test_instance\" \"example_0\" {\n provider = test\n ami = \"ami-12345\"\n}",
"import_config": "import {\n to = test_instance.example_0\n provider = test\n identity = {\n id = \"test-instance-1\"\n }\n}",
},
"type": "list_resource_found",
@ -556,7 +556,7 @@ func TestQuery_JSON(t *testing.T) {
"ami": "ami-67890",
"id": "test-instance-2",
},
"config": "resource \"test_instance\" \"example_1\" {\n provider = test\n ami = \"ami-67890\"\n id = \"test-instance-2\"\n}",
"config": "resource \"test_instance\" \"example_1\" {\n provider = test\n ami = \"ami-67890\"\n}",
"import_config": "import {\n to = test_instance.example_1\n provider = test\n identity = {\n id = \"test-instance-2\"\n }\n}",
},
"type": "list_resource_found",

Loading…
Cancel
Save