Only return true when the address is actually updated to a different one.

git-svn-id: svn+ssh://svn.luon.net/svn/ildus/trunk@15 65a33f86-aa00-0410-91be-cd1bf5efb309
This commit is contained in:
paul 2005-11-15 11:33:32 +00:00
parent 021de3e57a
commit 82d09e2039
1 changed files with 2 additions and 0 deletions

View File

@ -67,8 +67,10 @@ module Ildus::Server::DomainBackend
raise Handler::HostNotFoundError if entry.nil?
if addr.ipv4?
return false if entry['aRecord'][0] == addr.to_s
@ldap.modify(entry['dn'][0], {"aRecord" => [addr.to_s]})
elsif addr.ipv6?
return false if entry['aAAARecord'][0] == addr.to_s
@ldap.modify(entry['dn'][0], {"aAAARecord" => [addr.to_s]})
else
return false