diff --git a/google/resource_google_organization_iam_custom_role.go b/google/resource_google_organization_iam_custom_role.go index 976419e3a96..203f7995870 100644 --- a/google/resource_google_organization_iam_custom_role.go +++ b/google/resource_google_organization_iam_custom_role.go @@ -2,6 +2,7 @@ package google import ( "fmt" + "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/validation" "google.golang.org/api/iam/v1" @@ -40,10 +41,11 @@ func resourceGoogleOrganizationIamCustomRole() *schema.Resource { Elem: &schema.Schema{Type: schema.TypeString}, }, "stage": { - Type: schema.TypeString, - Optional: true, - Default: "GA", - ValidateFunc: validation.StringInSlice([]string{"ALPHA", "BETA", "GA", "DEPRECATED", "DISABLED", "EAP"}, false), + Type: schema.TypeString, + Optional: true, + Default: "GA", + ValidateFunc: validation.StringInSlice([]string{"ALPHA", "BETA", "GA", "DEPRECATED", "DISABLED", "EAP"}, false), + DiffSuppressFunc: emptyOrDefaultStringSuppress("ALPHA"), }, "description": { Type: schema.TypeString, diff --git a/google/resource_google_project_iam_custom_role.go b/google/resource_google_project_iam_custom_role.go index 959cd4b7e15..24aa92c896a 100644 --- a/google/resource_google_project_iam_custom_role.go +++ b/google/resource_google_project_iam_custom_role.go @@ -2,6 +2,7 @@ package google import ( "fmt" + "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/validation" "google.golang.org/api/iam/v1" @@ -41,10 +42,11 @@ func resourceGoogleProjectIamCustomRole() *schema.Resource { ForceNew: true, }, "stage": { - Type: schema.TypeString, - Optional: true, - Default: "GA", - ValidateFunc: validation.StringInSlice([]string{"ALPHA", "BETA", "GA", "DEPRECATED", "DISABLED", "EAP"}, false), + Type: schema.TypeString, + Optional: true, + Default: "GA", + ValidateFunc: validation.StringInSlice([]string{"ALPHA", "BETA", "GA", "DEPRECATED", "DISABLED", "EAP"}, false), + DiffSuppressFunc: emptyOrDefaultStringSuppress("ALPHA"), }, "description": { Type: schema.TypeString,