Skip to content

Commit

Permalink
Fix tags in single host
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Kita committed Oct 21, 2024
1 parent 1207351 commit f92e24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm/service/power/resource_ibm_pi_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func resourceIBMPIHostCreate(ctx context.Context, d *schema.ResourceData, meta i
host := hosts[0].(map[string]interface{})
tags := flex.FlattenSet(host[Attr_UserTags].(*schema.Set))
if len(tags) > 0 {
oldList, newList := d.GetChange(Attr_Hosts + ".0." + Attr_UserTags)
oldList, newList := d.GetChange(Arg_Host + ".0." + Attr_UserTags)
err := flex.UpdateGlobalTagsUsingCRN(oldList, newList, meta, string(hostResponse[0].Crn), "", UserTagType)
if err != nil {
log.Printf("Error on update of pi host (%s) pi_user_tags during creation: %s", hostResponse[0].ID, err)
Expand Down

0 comments on commit f92e24f

Please sign in to comment.