Skip to content

Commit

Permalink
fix(servers): fix plugin segfault when bootscript is null (#2664)
Browse files Browse the repository at this point in the history
  • Loading branch information
utix authored Jul 29, 2024
1 parent 3e8cc60 commit b8de73d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/services/instance/servers_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ func DataSourceInstanceServersRead(ctx context.Context, d *schema.ResourceData,
rawServer["zone"] = string(zone)
rawServer["name"] = server.Name
rawServer["boot_type"] = server.BootType
rawServer["bootscript_id"] = server.Bootscript.ID
if server.Bootscript != nil {
rawServer["bootscript_id"] = server.Bootscript.ID
}
rawServer["type"] = server.CommercialType
if len(server.Tags) > 0 {
rawServer["tags"] = server.Tags
Expand Down

0 comments on commit b8de73d

Please sign in to comment.