Skip to content

Commit

Permalink
Merge pull request #691 from yast/fix_nil_factory
Browse files Browse the repository at this point in the history
Fix nil factory
  • Loading branch information
jreidinger authored Jan 11, 2024
2 parents b3328c2 + ff1d2ee commit a964b05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-bootloader.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 10 23:16:39 UTC 2024 - Josef Reidinger <[email protected]>

- Do not try finding undefined bootloader name to avoid error
in logs (bsc#1218700)
- 4.6.5

-------------------------------------------------------------------
Thu Sep 7 13:44:17 UTC 2023 - Josef Reidinger <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-bootloader.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-bootloader
Version: 4.6.4
Version: 4.6.5
Release: 0
Summary: YaST2 - Bootloader Configuration
License: GPL-2.0-or-later
Expand Down
5 changes: 4 additions & 1 deletion src/lib/bootloader/bootloader_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def proposed
end

def system
bootloader_by_name(Sysconfig.from_system.bootloader)
sysconfig_name = Sysconfig.from_system.bootloader
return nil unless sysconfig_name

bootloader_by_name(sysconfig_name)
end

def current
Expand Down

0 comments on commit a964b05

Please sign in to comment.