Skip to content

Commit

Permalink
outscale_oapi: fix internet service cache
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Sep 27, 2022
1 parent 23ce7c0 commit e5ea70d
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 @@ -656,9 +656,9 @@ func (provider *OutscaleOAPI) readInternetServices() []Object {
}
return internetServices
}
for _, internetService := range *read.InternetServices {
for i, internetService := range *read.InternetServices {
internetServices = append(internetServices, *internetService.InternetServiceId)
provider.cache.internetServices[*internetService.InternetServiceId] = &internetService
provider.cache.internetServices[*internetService.InternetServiceId] = &(*read.InternetServices)[i]
}
return internetServices
}
Expand Down

0 comments on commit e5ea70d

Please sign in to comment.