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:
parent
2413b34cc5
commit
99f41d9f8c
1 changed files with 2 additions and 0 deletions
|
@ -302,6 +302,8 @@ module Fog
|
||||||
# so this below does not work in 1.8.7
|
# so this below does not work in 1.8.7
|
||||||
#net.keys.first
|
#net.keys.first
|
||||||
# this is compatible to 1.8.7 and 1.9+
|
# this is compatible to 1.8.7 and 1.9+
|
||||||
|
return '' if net.nil?
|
||||||
|
return '' if net.first.nil?
|
||||||
net.first[0]
|
net.first[0]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue