1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-22 00:54:22 +01:00

updater: rename parameter to match expected type

This commit is contained in:
cn 2020-02-28 16:01:44 +01:00
parent fdcd6e8da4
commit 9ab080072f

View File

@ -8,12 +8,12 @@ module Dyndnsd
@generator = Generator::Bind.new(domain, config) @generator = Generator::Bind.new(domain, config)
end end
def update(zone) def update(db)
Helper.span('updater_update') do |span| Helper.span('updater_update') do |span|
span.set_tag('dyndnsd.updater.name', self.class.name.split('::').last) span.set_tag('dyndnsd.updater.name', self.class.name.split('::').last)
# write zone file in bind syntax # write zone file in bind syntax
File.open(@zone_file, 'w') { |f| f.write(@generator.generate(zone)) } File.open(@zone_file, 'w') { |f| f.write(@generator.generate(db)) }
# call user-defined command # call user-defined command
pid = fork do pid = fork do
exec @command exec @command