Skip to content

Commit

Permalink
change func name
Browse files Browse the repository at this point in the history
  • Loading branch information
takara9 committed Sep 13, 2024
1 parent 0e9ef85 commit 29ea0f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions machines-endpoints/pkg/machines-endpoints/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ func main() {

if *flgBMCLogCollectorConfigMap {
// create bmc-log-collector configmap of all servers that include boot servers
addersses, err := bmcListJson(machines)
addersses, err := updateServerAddressList(machines)
if err != nil {
log.ErrorExit(err)
}
Expand All @@ -436,7 +436,7 @@ func main() {
}
}

func bmcListJson(machines []Machine) (map[string]string, error) {
func updateServerAddressList(machines []Machine) (map[string]string, error) {
type MachineConfigMap struct {
Serial string `json:"serial"`
BmcIP string `json:"bmc_ip"`
Expand Down
2 changes: 1 addition & 1 deletion machines-endpoints/pkg/machines-endpoints/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func TestUpdateBMCLogCollectorConfigMap(t *testing.T) {
m1.Status.State = "HEALTHY"
ml = append(ml, m1)

byteJSON, err := bmcListJson(ml)
byteJSON, err := updateServerAddressList(ml)
if err != nil {
t.Fatalf("failed create JSON data %#v", err)
}
Expand Down

0 comments on commit 29ea0f4

Please sign in to comment.