From 099bf6c582b8e68263f25c0430fcf3d5ac7b1b7f Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 18 Jun 2007 21:03:18 +0000 Subject: Fixing some failing tests. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2616 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/network/handler/master.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/network/handler') diff --git a/lib/puppet/network/handler/master.rb b/lib/puppet/network/handler/master.rb index 50c988917..e889c1ba8 100644 --- a/lib/puppet/network/handler/master.rb +++ b/lib/puppet/network/handler/master.rb @@ -71,7 +71,7 @@ class Puppet::Network::Handler host = Puppet::Rails::Host.find_or_create_by_name(client) host.last_freshcheck = Time.now - if clientip and (! host.ip or host.ip == "") + if clientip and (! host.ip or host.ip == "" or host.ip == "NULL") host.ip = clientip end host.save -- cgit