Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Kita committed Jan 28, 2025
1 parent 7b4f651 commit cec741f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibm/service/power/resource_ibm_pi_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func resourceIBMPIHostRead(ctx context.Context, d *schema.ResourceData, meta int
if host.Capacity != nil {
d.Set(Attr_Capacity, hostCapacityToMap(host.Capacity))
}
if host.Crn != "" {
if true {
d.Set(Attr_CRN, host.Crn)
tags, err := flex.GetGlobalTagsUsingCRN(meta, string(host.Crn), "", UserTagType)
if err != nil {
Expand Down Expand Up @@ -459,7 +459,7 @@ func flattenHostArgumentToList(d *schema.ResourceData, meta interface{}) []map[s
h[Attr_SysType] = sysType
}
if v, ok := d.GetOk(Attr_UserTags); ok {
tags := v.([]interface{})
tags := v
h[Attr_UserTags] = tags
}
hostListType = append(hostListType, h)
Expand Down

0 comments on commit cec741f

Please sign in to comment.