From 843a03962ca066ef35dfaacd734df15ca8951035 Mon Sep 17 00:00:00 2001 From: Simon Gate Date: Fri, 1 Feb 2013 17:06:37 +0100 Subject: [PATCH] [glesys] Return nil if there isn't any public ip address --- lib/fog/glesys/models/compute/server.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fog/glesys/models/compute/server.rb b/lib/fog/glesys/models/compute/server.rb index ab534800e..1aa08294f 100644 --- a/lib/fog/glesys/models/compute/server.rb +++ b/lib/fog/glesys/models/compute/server.rb @@ -108,6 +108,8 @@ module Fog def public_ip_address(options = {}) + return nil if iplist.nil? + type = options[:type] || nil ips = case type