Skip to content

Commit

Permalink
fix: install disk matcher error
Browse files Browse the repository at this point in the history
The error was printing wrong field.

See #9647

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira committed Nov 7, 2024
1 parent 1800f81 commit aa9311f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machinery/config/types/v1alpha1/v1alpha1_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (c *Config) Validate(mode validation.RuntimeMode, options ...validation.Opt
}

if _, err := os.Stat(disk); os.IsNotExist(err) {
result = multierror.Append(result, fmt.Errorf("specified install disk does not exist: %q", c.MachineConfig.MachineInstall.InstallDisk))
result = multierror.Append(result, fmt.Errorf("specified install disk does not exist: %q", disk))
}
}
}
Expand Down

0 comments on commit aa9311f

Please sign in to comment.