Skip to content

Commit

Permalink
outscale_oapi: fix public ip 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 4335200 commit 309aa4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/providers/outscale_oapi/outscale_oapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,9 @@ func (provider *OutscaleOAPI) readPublicIps() []Object {
}
return publicIps
}
for _, pip := range *read.PublicIps {
for i, pip := range *read.PublicIps {
publicIps = append(publicIps, *pip.PublicIp)
provider.cache.publicIps[*pip.PublicIp] = &(*read.PublicIps)[i]
}
return publicIps
}
Expand Down

0 comments on commit 309aa4a

Please sign in to comment.