Skip to content

Commit

Permalink
fix(reservation): Reservation data source crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sreekarbvibm authored and hkantare committed Dec 19, 2024
1 parent e95172e commit 62b5a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ibm/service/vpc/data_source_ibm_is_reservation.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ func dataSourceReservationProfileToMap(profileItem vpcv1.ReservationProfileIntf)
return
}

profileMap = make(map[string]interface{})

if profile.Href != nil {
profileMap["href"] = profile.Href
}
Expand Down
1 change: 1 addition & 0 deletions ibm/service/vpc/data_source_ibm_is_reservations.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ func dataSourceReservationCollectionReservationsProfileToMap(profileItem vpcv1.R
if profile = profileItem.(*vpcv1.ReservationProfile); profile == nil {
return
}
profileMap = make(map[string]interface{})
if profile.Href != nil {
profileMap["href"] = profile.Href
}
Expand Down

0 comments on commit 62b5a7e

Please sign in to comment.