From cec741f74a51f916fa37a623c443fc5d00bfa5d9 Mon Sep 17 00:00:00 2001 From: Alexander Kita Date: Tue, 28 Jan 2025 17:36:01 -0600 Subject: [PATCH] fixes --- ibm/service/power/resource_ibm_pi_host.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibm/service/power/resource_ibm_pi_host.go b/ibm/service/power/resource_ibm_pi_host.go index 9205bc2746..9e621101c4 100644 --- a/ibm/service/power/resource_ibm_pi_host.go +++ b/ibm/service/power/resource_ibm_pi_host.go @@ -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 { @@ -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)