Skip to content

Commit c42b718

Browse files
Unexport function that was mistakenly exported:
Signed-off-by: Jacob Weinstock <[email protected]>
1 parent 5fd336b commit c42b718

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

controller/machine/hardware.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ var (
4646
ErrHardwareMissingDiskConfiguration = fmt.Errorf("disk configuration is required")
4747
)
4848

49-
// HardwareIP returns the IP address of the first network interface of the given hardware.
50-
func HardwareIP(hardware *tinkv1.Hardware) (string, error) {
49+
// hardwareIP returns the IP address of the first network interface of the given hardware.
50+
func hardwareIP(hardware *tinkv1.Hardware) (string, error) {
5151
if hardware == nil {
5252
return "", ErrHardwareIsNil
5353
}

controller/machine/scope.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (scope *machineReconcileScope) setStatus(hw *tinkv1.Hardware) error {
179179
}
180180
}
181181

182-
ip, err := HardwareIP(hw)
182+
ip, err := hardwareIP(hw)
183183
if err != nil {
184184
return fmt.Errorf("extracting Hardware IP address: %w", err)
185185
}

0 commit comments

Comments
 (0)