Project

General

Profile

« Previous | Next » 

Revision c9bb78b4

Added by Marc Dequènes almost 14 years ago

  • ID c9bb78b4051d82f46e3f9d349c575e16526c0994

[fix] mistake in variable name

View differences:

lib/cyborghood/services/dns.rb
def serial_in_zone_file
reader = Dnsruby::ZoneReader.new(@name)
zone = reader.process_file(@filename)
soa = zone.select{|rr| rr.name.to_s == zone_name and rr.type == 'SOA' }.first
soa = zone.select{|rr| rr.name.to_s == @name and rr.type == 'SOA' }.first
soa ? soa.serial : nil
end
......
reader = Dnsruby::ZoneReader.new(@name)
zone = reader.process_file(@filename_signed)
soa = zone.select{|rr| rr.name.to_s == zone_name and rr.type == 'SOA' }.first
soa = zone.select{|rr| rr.name.to_s == @name and rr.type == 'SOA' }.first
soa ? soa.serial : nil
end

Also available in: Unified diff