Skip to content

Commit

Permalink
Fix the nil pointer for coreos enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hkantare committed Aug 3, 2022
1 parent 8a02b05 commit 7d9c58c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ibm/service/satellite/data_source_ibm_satellite_location.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ func dataSourceIBMSatelliteLocationRead(d *schema.ResourceData, meta interface{}
d.SetId(*instance.ID)
d.Set("location", location)
d.Set("description", *instance.Description)
d.Set("coreos_enabled", *instance.CoreosEnabled)
if instance.CoreosEnabled != nil {
d.Set("coreos_enabled", *instance.CoreosEnabled)
}
d.Set("zones", instance.WorkerZones)
d.Set("managed_from", *instance.Datacenter)
d.Set("crn", *instance.Crn)
Expand Down

0 comments on commit 7d9c58c

Please sign in to comment.