Skip to content

Commit ceff3b2

Browse files
committed
Update data_source_ibm_is_bare_metal_server_profile.go
1 parent 542efba commit ceff3b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ibm/service/vpc/data_source_ibm_is_bare_metal_server_profile.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package vpc
66
import (
77
"context"
88
"fmt"
9+
"log"
910

1011
"github.com/IBM-Cloud/terraform-provider-ibm/ibm/conns"
1112
"github.com/IBM-Cloud/terraform-provider-ibm/ibm/flex"
@@ -445,7 +446,8 @@ func dataSourceIBMISBMSProfileRead(context context.Context, d *schema.ResourceDa
445446
}
446447
bmsProfile, response, err := sess.GetBareMetalServerProfileWithContext(context, options)
447448
if err != nil || bmsProfile == nil {
448-
return diag.FromErr(fmt.Errorf("[ERROR] Error Getting Bare Metal Server Profile (%s): %s\n%s", name, err, response))
449+
log.Printf("[DEBUG] GetBareMetalServerProfileWithContext failed %s\n%s", err, response)
450+
return diag.FromErr(fmt.Errorf("[ERROR] GetBareMetalServerProfileWithContext failed %s\n%s", err, response))
449451
}
450452
d.SetId(*bmsProfile.Name)
451453
d.Set(isBareMetalServerProfileName, *bmsProfile.Name)

0 commit comments

Comments
 (0)