Skip to content

Commit 9c2b2c5

Browse files
committed
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.
1 parent 82889ae commit 9c2b2c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/command/query_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ func TestQuery_JSON(t *testing.T) {
536536
"ami": "ami-12345",
537537
"id": "test-instance-1",
538538
},
539-
"config": "resource \"test_instance\" \"example_0\" {\n provider = test\n ami = \"ami-12345\"\n id = \"test-instance-1\"\n}",
539+
"config": "resource \"test_instance\" \"example_0\" {\n provider = test\n ami = \"ami-12345\"\n}",
540540
"import_config": "import {\n to = test_instance.example_0\n provider = test\n identity = {\n id = \"test-instance-1\"\n }\n}",
541541
},
542542
"type": "list_resource_found",
@@ -556,7 +556,7 @@ func TestQuery_JSON(t *testing.T) {
556556
"ami": "ami-67890",
557557
"id": "test-instance-2",
558558
},
559-
"config": "resource \"test_instance\" \"example_1\" {\n provider = test\n ami = \"ami-67890\"\n id = \"test-instance-2\"\n}",
559+
"config": "resource \"test_instance\" \"example_1\" {\n provider = test\n ami = \"ami-67890\"\n}",
560560
"import_config": "import {\n to = test_instance.example_1\n provider = test\n identity = {\n id = \"test-instance-2\"\n }\n}",
561561
},
562562
"type": "list_resource_found",

0 commit comments

Comments
 (0)