Skip to content

Commit dadd1a4

Browse files
committed
Fix
1 parent 100359b commit dadd1a4

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

scaleway/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ func expandStringWithDefault(data interface{}, defaultValue string) string {
375375

376376
func expandStrings(data interface{}) []string {
377377
if data == nil {
378-
return nil
378+
return []string{}
379379
}
380380
stringSlice := []string(nil)
381381
for _, s := range data.([]interface{}) {

scaleway/resource_instance_server.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,6 @@ func resourceScalewayInstanceServerUpdate(ctx context.Context, d *schema.Resourc
508508

509509
if d.HasChange("tags") {
510510
tags := expandStrings(d.Get("tags"))
511-
if tags == nil {
512-
tags = []string{}
513-
}
514511
updateRequest.Tags = scw.StringsPtr(tags)
515512
}
516513

0 commit comments

Comments
 (0)