Skip to content

Commit

Permalink
Do a lazy initialization of network and security settings
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Oct 27, 2023
1 parent 9c2981e commit aff586f
Showing 1 changed file with 10 additions and 8 deletions.
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 aff586f

Please sign in to comment.