Skip to content

Commit

Permalink
outscale_oapi: fix nic 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 e5ea70d commit 4335200
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 @@ -1012,9 +1012,9 @@ func (provider *OutscaleOAPI) readNics() []Object {
}
return nics
}
for _, nic := range *read.Nics {
provider.cache.nics[*nic.NicId] = &nic
for i, nic := range *read.Nics {
nics = append(nics, *nic.NicId)
provider.cache.nics[*nic.NicId] = &(*read.Nics)[i]
}
return nics
}
Expand Down

0 comments on commit 4335200

Please sign in to comment.