Skip to content

Commit

Permalink
Maybe...
Browse files Browse the repository at this point in the history
  • Loading branch information
olliewalsh committed Dec 23, 2024
1 parent c656501 commit a374340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1beta1/openstackipset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ func init() {
// GetHostnames -
func (instance OpenStackIPSet) GetHostnames() map[string]string {
ret := make(map[string]string)
for _, val := range instance.Status.Hosts {
ret[val.Hostname] = val.HostRef
for hostname, val := range instance.Status.Hosts {
ret[hostname] = val.HostRef
}
return ret
}

0 comments on commit a374340

Please sign in to comment.