Skip to content

Commit

Permalink
fix: check for nil machine config during installation
Browse files Browse the repository at this point in the history
Otherwise we get `nil reference` exception during maintenance mode
upgrade with partial machine configs.

Signed-off-by: Artem Chernyshev <[email protected]>
(cherry picked from commit 42ac5cd)
  • Loading branch information
Unix4ever authored and smira committed Jul 22, 2024
1 parent 3ec9b8d commit 390b29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/installer/cmd/installer/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func runInstallCmd(ctx context.Context) (err error) {
}
}

if config.Machine().Install().LegacyBIOSSupport() {
if config.Machine() != nil && config.Machine().Install().LegacyBIOSSupport() {
options.LegacyBIOSSupport = true
}
}
Expand Down

0 comments on commit 390b29d

Please sign in to comment.