Skip to content

Commit

Permalink
outscale_oapi: fix route table cache
Browse files Browse the repository at this point in the history
fixes #174

Signed-off-by: Jérôme Jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Sep 27, 2022
1 parent 6b882e1 commit b0bee1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/providers/outscale_oapi/outscale_oapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,9 @@ func (provider *OutscaleOAPI) readRouteTables() []Object {
}
return routeTables
}
for _, routeTable := range *read.RouteTables {
for i, routeTable := range *read.RouteTables {
routeTables = append(routeTables, *routeTable.RouteTableId)
provider.cache.routeTables[*routeTable.RouteTableId] = &routeTable
provider.cache.routeTables[*routeTable.RouteTableId] = &(*read.RouteTables)[i]
}
return routeTables
}
Expand Down

0 comments on commit b0bee1e

Please sign in to comment.