Skip to content

Commit e246b85

Browse files
committed
fix(instance): fix TestAccScalewayInstanceServer_AlterTags
1 parent f775393 commit e246b85

File tree

2 files changed

+1017
-1013
lines changed

2 files changed

+1017
-1013
lines changed

scaleway/resource_instance_server.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,12 @@ func resourceScalewayInstanceServerUpdate(ctx context.Context, d *schema.Resourc
511511

512512
if d.HasChange("tags") {
513513
tags := expandStrings(d.Get("tags"))
514-
updateRequest.Tags = scw.StringsPtr(tags)
514+
if tags == nil {
515+
t := []string{}
516+
updateRequest.Tags = &t
517+
} else {
518+
updateRequest.Tags = scw.StringsPtr(tags)
519+
}
515520
}
516521

517522
if d.HasChange("security_group_id") {

0 commit comments

Comments
 (0)