Skip to content

Commit

Permalink
adapted suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Oct 10, 2018
1 parent 26934e9 commit 603bd8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/include/dhcp-server/widgets.rb
Expand Up @@ -8,13 +8,14 @@

require "yast"
require "ui/service_status"
require "y2firewall/firewalld"
require "y2firewall/helpers/interfaces"

# Representation of the configuration of dhcp-server.
# Input and output routines.
module Yast
module DhcpServerWidgetsInclude
include Y2Firewall::Helpers::Interfaces

def initialize_dhcp_server_widgets(include_target)
textdomain "dhcp-server"

Expand Down Expand Up @@ -326,7 +327,7 @@ def OpenFirewallValidate(id, event)
Builtins.foreach(@ifaces) do |ifcfg, interface|
# interface is active
if Ops.get_boolean(interface, "active", false) == true
unless firewalld.zones.find { |z| z.interfaces.include?(ifcfg) }
unless interface_zone(ifcfg)
ifaces_not_in_fw = Builtins.add(ifaces_not_in_fw, ifcfg)
end
end
Expand Down

0 comments on commit 603bd8c

Please sign in to comment.