Skip to content

Commit

Permalink
Remove length check from user tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Kita committed Oct 3, 2024
1 parent 8ce429d commit 2bc72ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ibm/service/power/resource_ibm_pi_shared_processor_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ func resourceIBMPISharedProcessorPoolCreate(ctx context.Context, d *schema.Resou
body.PlacementGroupID = pg.(string)
}
if tags, ok := d.GetOk(Arg_UserTags); ok {
if len(flex.FlattenSet(tags.(*schema.Set))) > 0 {
body.UserTags = flex.FlattenSet(tags.(*schema.Set))
}
body.UserTags = flex.FlattenSet(tags.(*schema.Set))
}

spp, err := client.Create(body)
Expand Down

0 comments on commit 2bc72ce

Please sign in to comment.