don't fail if we were given a peerhost of 'Remote Pipe'. Fixes #3049, thanks Raphael M for the patch

git-svn-id: file:///home/svn/framework3/trunk@11010 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-11-12 16:43:00 +00:00
parent a12d9f8dbf
commit 9df4c2bccf
1 changed files with 5 additions and 0 deletions

View File

@ -211,6 +211,11 @@ class DBManager
return if not active
addr = opts.delete(:host) || return
# Sometimes a host setup through a pivot will see the address as "Remote Pipe"
if addr.eql? "Remote Pipe"
return
end
# Ensure the host field updated_at is changed on each report_host()
if addr.kind_of? Host
queue( Proc.new { addr.updated_at = addr.created_at; addr.save! } )