From 58f80c2b3f69244b57ec73f255e050f2486cb8b5 Mon Sep 17 00:00:00 2001 From: sagilaufer1992 Date: Sun, 10 Nov 2024 11:09:51 +0200 Subject: [PATCH 1/2] Update resource_custom_role.go missing: MOVE/IMPORT_ENVIRONMENTS --- env0/resource_custom_role.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/env0/resource_custom_role.go b/env0/resource_custom_role.go index 7270e7af..99d33958 100644 --- a/env0/resource_custom_role.go +++ b/env0/resource_custom_role.go @@ -47,6 +47,8 @@ func resourceCustomRole() *schema.Resource { "ASSIGN_ROLE_ON_ENVIRONMENT", "EDIT_ALLOW_REMOTE_APPLY", "EDIT_VCS_ENVIRONMENT", + "MOVE_ENVIRONMENTS", + "IMPORT_ENVIRONMENTS" } allowedCustomRoleTypesStr := fmt.Sprintf("(allowed values: %s)", strings.Join(allowedCustomRoleTypes, ", ")) From 3e617e8adbd53ac181c42a40aeeab3f3360e6e8f Mon Sep 17 00:00:00 2001 From: sagilaufer1992 Date: Sun, 10 Nov 2024 11:12:21 +0200 Subject: [PATCH 2/2] Update resource_custom_role.go it failed to compile, seems like a missing comma --- env0/resource_custom_role.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env0/resource_custom_role.go b/env0/resource_custom_role.go index 99d33958..dc766c20 100644 --- a/env0/resource_custom_role.go +++ b/env0/resource_custom_role.go @@ -48,7 +48,7 @@ func resourceCustomRole() *schema.Resource { "EDIT_ALLOW_REMOTE_APPLY", "EDIT_VCS_ENVIRONMENT", "MOVE_ENVIRONMENTS", - "IMPORT_ENVIRONMENTS" + "IMPORT_ENVIRONMENTS", } allowedCustomRoleTypesStr := fmt.Sprintf("(allowed values: %s)", strings.Join(allowedCustomRoleTypes, ", "))