Skip to content

Commit

Permalink
Enabled creating s390 devices in ported import
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Apr 4, 2016
1 parent 4ec8ded commit c6c9551
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/LanItems.rb
Expand Up @@ -1107,6 +1107,13 @@ def Import(settings)
autoinstall_settings["strict_IP_check_timeout"] = settings.fetch("strict_IP_check_timeout", -1)
autoinstall_settings["keep_install_network"] = settings.fetch("keep_install_network", false)

# FIXME: createS390Device does two things, it
# - updates internal structures
# - creates s390 device eth emulation
# So, it belongs partly into Import and partly into Write. Note, that
# the code is currently unable to revert already created emulated device.
settings.fetch("s390-devices", {}).each { |rule| createS390Device(rule) } if Arch.s390

# settings == {} has special meaning 'Reset' used by AY
SetModified() if !settings.empty?

Expand Down

0 comments on commit c6c9551

Please sign in to comment.