Skip to content

Commit

Permalink
Service account description is not updateable.
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-henderson committed Nov 12, 2019
1 parent 54bfe70 commit 78b97f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func resourceGoogleServiceAccount() *schema.Resource {
"description": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"project": {
Type: schema.TypeString,
Expand Down Expand Up @@ -126,7 +127,7 @@ func resourceGoogleServiceAccountDelete(d *schema.ResourceData, meta interface{}

func resourceGoogleServiceAccountUpdate(d *schema.ResourceData, meta interface{}) error {
config := meta.(*Config)
if d.HasChange("display_name") || d.HasChange("description") {
if d.HasChange("display_name") {
sa, err := config.clientIAM.Projects.ServiceAccounts.Get(d.Id()).Do()
if err != nil {
return fmt.Errorf("Error retrieving service account %q: %s", d.Id(), err)
Expand Down

0 comments on commit 78b97f0

Please sign in to comment.