Skip to content

Commit

Permalink
Fix: Crash on cloud_shell settings datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
kavya498 committed Oct 29, 2021
1 parent 3ee5571 commit 8352c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibm/data_source_ibm_cloud_shell_account_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func dataSourceIBMCloudShellAccountSettingsRead(context context.Context, d *sche
getAccountSettingsOptions.SetAccountID(d.Get("account_id").(string))

accountSettings, response, err := ibmCloudShellClient.GetAccountSettingsWithContext(context, getAccountSettingsOptions)
if err != nil {
if err != nil || accountSettings == nil {
log.Printf("[DEBUG] GetAccountSettingsWithContext failed %s\n%s", err, response)
return diag.FromErr(fmt.Errorf("GetAccountSettingsWithContext failed %s\n%s", err, response))
}
Expand Down

0 comments on commit 8352c3f

Please sign in to comment.