From 99f41d9f8ccacd67966ebe816e014d71db5649cb Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Fri, 26 Jul 2013 06:58:12 -0600 Subject: [PATCH] Update lib/fog/hp/models/compute_v2/server.rb --- lib/fog/hp/models/compute_v2/server.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fog/hp/models/compute_v2/server.rb b/lib/fog/hp/models/compute_v2/server.rb index fa6dc267b..387cebc57 100644 --- a/lib/fog/hp/models/compute_v2/server.rb +++ b/lib/fog/hp/models/compute_v2/server.rb @@ -302,6 +302,8 @@ module Fog # so this below does not work in 1.8.7 #net.keys.first # this is compatible to 1.8.7 and 1.9+ + return '' if net.nil? + return '' if net.first.nil? net.first[0] end