Skip to content

Commit fbf85dd

Browse files
committed
fix: install disk matcher error
The error was printing wrong field. See #9647 Signed-off-by: Andrey Smirnov <[email protected]> (cherry picked from commit aa9311f)
1 parent ff3fcce commit fbf85dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/machinery/config/types/v1alpha1/v1alpha1_validation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (c *Config) Validate(mode validation.RuntimeMode, options ...validation.Opt
109109
}
110110

111111
if _, err := os.Stat(disk); os.IsNotExist(err) {
112-
result = multierror.Append(result, fmt.Errorf("specified install disk does not exist: %q", c.MachineConfig.MachineInstall.InstallDisk))
112+
result = multierror.Append(result, fmt.Errorf("specified install disk does not exist: %q", disk))
113113
}
114114
}
115115
}

0 commit comments

Comments
 (0)