Skip to content

Commit

Permalink
Merge pull request #366 from gthiemonge/fix_ip_sort
Browse files Browse the repository at this point in the history
Fix net.SortIPs calls
  • Loading branch information
openshift-merge-bot[bot] authored Aug 14, 2024
2 parents 3501057 + e8b9edd commit 7d738db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/amphoracontroller_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,8 @@ func (r *OctaviaAmphoraControllerReconciler) generateServiceConfigMaps(
rsyslogIPAddresses = append(rsyslogIPAddresses, fmt.Sprintf("%s:514", val))
}
}
net.SortIPs(ipAddresses)
net.SortIPs(rsyslogIPAddresses)
ipAddresses = net.SortIPs(ipAddresses)
rsyslogIPAddresses = net.SortIPs(rsyslogIPAddresses)
ipAddressString := strings.Join(ipAddresses, ",")
templateParameters["ControllerIPList"] = ipAddressString
templateParameters["AdminLogTargetList"] = strings.Join(rsyslogIPAddresses, ",")
Expand Down

0 comments on commit 7d738db

Please sign in to comment.