Skip to content

Commit

Permalink
Unexport function that was mistakenly exported:
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Jun 26, 2024
1 parent 5fd336b commit c42b718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controller/machine/hardware.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ var (
ErrHardwareMissingDiskConfiguration = fmt.Errorf("disk configuration is required")
)

// HardwareIP returns the IP address of the first network interface of the given hardware.
func HardwareIP(hardware *tinkv1.Hardware) (string, error) {
// hardwareIP returns the IP address of the first network interface of the given hardware.
func hardwareIP(hardware *tinkv1.Hardware) (string, error) {
if hardware == nil {
return "", ErrHardwareIsNil
}
Expand Down
2 changes: 1 addition & 1 deletion controller/machine/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (scope *machineReconcileScope) setStatus(hw *tinkv1.Hardware) error {
}
}

ip, err := HardwareIP(hw)
ip, err := hardwareIP(hw)
if err != nil {
return fmt.Errorf("extracting Hardware IP address: %w", err)
}
Expand Down

0 comments on commit c42b718

Please sign in to comment.