Skip to content

Commit

Permalink
Makes rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Oct 31, 2023
1 parent 20f65dc commit fb81b46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/y2firewall/clients/auto.rb
Expand Up @@ -83,6 +83,7 @@ def import(profile, merge = !Yast::Mode.config)
# by the AutoYaST confirm dialog.
update_service_state(profile)
return false if merge && !read(force: false)

start if profile.fetch("start_firewall", false)
autoyast.import(profile)
check_profile_for_errors
Expand Down Expand Up @@ -250,7 +251,9 @@ def update_service_state(profile)
state = profile.fetch("enable_firewall", settings.enable_firewall)

log.info("Firewall should be enabled: #{state}")
state ? settings.enable_firewall! : settings.disable_firewall! if Yast::Mode.auto
if Yast::Mode.auto
state ? settings.enable_firewall! : settings.disable_firewall!
end
state
end

Expand Down

0 comments on commit fb81b46

Please sign in to comment.