Skip to content

Commit

Permalink
change file name to match ipmi ip
Browse files Browse the repository at this point in the history
  • Loading branch information
jarededwards committed Dec 7, 2024
1 parent 04bda4e commit f03153a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/addipmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func getAddIPMICommand() *cobra.Command {
return fmt.Errorf("error parsing template: %w", err)
}

outputFile, err := os.Create(filepath.Join(homeDir, constants.ColonyDir, "ipmi", fmt.Sprintf("%s-%s.yaml", entry.HardwareID, t)))
outputFile, err := os.Create(filepath.Join(homeDir, constants.ColonyDir, "ipmi", fmt.Sprintf("%s-%s.yaml", strings.ReplaceAll(entry.IP, ".", "-"), t)))
if err != nil {
return fmt.Errorf("error creating output file: %w", err)
}
Expand Down

0 comments on commit f03153a

Please sign in to comment.