Skip to content

Commit

Permalink
Merge pull request #156 from yast/lazy_initialization
Browse files Browse the repository at this point in the history
Do a lazy initialization of network and security settings
  • Loading branch information
teclator authored Nov 1, 2023
2 parents 9c2981e + 98f768a commit 55c82d9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
7 changes: 7 additions & 0 deletions package/yast2-security.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Oct 30 09:09:26 UTC 2023 - Knut Anderssen <[email protected]>

- Do not load the security settings from the security policy until
needed (bsc#1216615).
- 4.5.7

-------------------------------------------------------------------
Wed Feb 22 17:28:54 UTC 2023 - Michal Filka <[email protected]>

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


Name: yast2-security
Version: 4.5.6
Version: 4.5.7
Release: 0
Group: System/YaST
License: GPL-2.0-only
Expand Down
18 changes: 10 additions & 8 deletions src/lib/y2security/security_policies/target_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,19 @@ class TargetConfig
# @return [Bootloader::BootloaderFactory]
attr_accessor :bootloader

# @return [Y2Network::Config]
attr_accessor :network

# @return [Installation::SecuritySettings, nil] nil if yast2-installation is not available
attr_accessor :security

def initialize
@storage = default_devicegraph
@network = default_network_config
@bootloader = default_bootloader
@security = default_security_settings
end

# @return [Y2Network::Config]
def network
default_network_config
end

# @return [Installation::SecuritySettings, nil] nil if yast2-installation is not available
def security
default_security_settings
end

# Default devicegraph
Expand Down

0 comments on commit 55c82d9

Please sign in to comment.