Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
[APIF-1660] Use HasChanged to determine empty desc for SA
Browse files Browse the repository at this point in the history
  • Loading branch information
TaihengJin committed Oct 15, 2021
1 parent d8afda2 commit d8f99ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/provider/resource_service_account.go
Expand Up @@ -61,8 +61,7 @@ func serviceAccountUpdate(ctx context.Context, d *schema.ResourceData, meta inte

updateReq := iam.NewV2ServiceAccountUpdate()

// TODO: need a way to explicitly set values to empty strings (*string)
if description != "" {
if d.HasChange(paramDescription) {
updateReq.SetDescription(description)
}

Expand Down

0 comments on commit d8f99ff

Please sign in to comment.