From 7ad25a280f5ff52dee83e4974c551849d3348d24 Mon Sep 17 00:00:00 2001 From: Tomer Heber Date: Mon, 25 Dec 2023 13:27:10 -0500 Subject: [PATCH] Fix: inconsistent plan on the first apply when trying to create ssh_keys (#774) --- env0/data_sshkey.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/env0/data_sshkey.go b/env0/data_sshkey.go index 0b32d0cb..528506a6 100644 --- a/env0/data_sshkey.go +++ b/env0/data_sshkey.go @@ -18,12 +18,14 @@ func dataSshKey() *schema.Resource { Type: schema.TypeString, Description: "the name of the ssh key", Optional: true, + Computed: true, ExactlyOneOf: []string{"name", "id"}, }, "id": { Type: schema.TypeString, Description: "id of the ssh key", Optional: true, + Computed: true, ExactlyOneOf: []string{"name", "id"}, }, },