Skip to content

Commit

Permalink
Update calls to Yast2::Systemd::Service
Browse files Browse the repository at this point in the history
  • Loading branch information
dgdavid committed Aug 16, 2018
1 parent 6cf1c69 commit 5b92e25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/DhcpServerUI.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Representation of the configuration of dhcp-server.
# Input and output routines.
require "yast"
require "yast2/systemd/service"

module Yast
class DhcpServerUIClass < Module
Expand All @@ -24,7 +25,6 @@ def main
Yast.import "Report"
Yast.import "Service"
Yast.import "SuSEFirewall"
Yast.import "SystemdService"

@current_entry_type = ""
@current_entry_id = ""
Expand Down Expand Up @@ -84,9 +84,9 @@ def DhcpServerUI

# Object representing the DHCP service for its usage in the UI code
#
# @return [Yast::SystemdServiceClass::Service]
# @return [Yast2::Systemd::Service]
def service
@service ||= SystemdService.find(DhcpServer.ServiceName())
@service ||= Yast2::Systemd::Service.find(DhcpServer.ServiceName())
end

publish :variable => :current_entry_type, :type => "string"
Expand Down

0 comments on commit 5b92e25

Please sign in to comment.