1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Update lib/fog/hp/models/compute_v2/server.rb

This commit is contained in:
Terry Howe 2013-07-26 06:58:12 -06:00 committed by Rupak Ganguly
parent 2413b34cc5
commit 99f41d9f8c

View file

@ -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