mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-21 14:54:22 +01:00
updater: rename parameter to match expected type
This commit is contained in:
parent
fdcd6e8da4
commit
9ab080072f
@ -8,12 +8,12 @@ module Dyndnsd
|
||||
@generator = Generator::Bind.new(domain, config)
|
||||
end
|
||||
|
||||
def update(zone)
|
||||
def update(db)
|
||||
Helper.span('updater_update') do |span|
|
||||
span.set_tag('dyndnsd.updater.name', self.class.name.split('::').last)
|
||||
|
||||
# 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
|
||||
pid = fork do
|
||||
exec @command
|
||||
|
Loading…
Reference in New Issue
Block a user