From d40c2c8096d52f19252f70675344631df124e8c3 Mon Sep 17 00:00:00 2001 From: jblancett Date: Wed, 18 Sep 2013 11:33:28 -0400 Subject: [PATCH] fix for linode using public ip blocks in 192.* --- lib/fog/linode/models/compute/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/linode/models/compute/server.rb b/lib/fog/linode/models/compute/server.rb index 161d0037f..c660338fe 100644 --- a/lib/fog/linode/models/compute/server.rb +++ b/lib/fog/linode/models/compute/server.rb @@ -19,7 +19,7 @@ module Fog end def public_ip_address - ips.find{|ip| ip.ip !~ /^192/}.ip + ips.find{|ip| ip.ip !~ /^192\.168\./}.ip end def disks