mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[glesys] Return nil if there isn't any public ip address
This commit is contained in:
parent
42b08820bd
commit
843a03962c
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,8 @@ module Fog
|
||||||
|
|
||||||
def public_ip_address(options = {})
|
def public_ip_address(options = {})
|
||||||
|
|
||||||
|
return nil if iplist.nil?
|
||||||
|
|
||||||
type = options[:type] || nil
|
type = options[:type] || nil
|
||||||
|
|
||||||
ips = case type
|
ips = case type
|
||||||
|
|
Loading…
Reference in a new issue