mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[brightbox] Correctly get Server's IP addresses as strings
This commit is contained in:
parent
bea5bfe80a
commit
4577a80010
1 changed files with 10 additions and 2 deletions
|
@ -108,11 +108,19 @@ module Fog
|
|||
end
|
||||
|
||||
def private_ip_address
|
||||
interfaces.first
|
||||
unless interfaces.empty?
|
||||
interfaces.first["ipv4_address"]
|
||||
else
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
def public_ip_address
|
||||
cloud_ips.first
|
||||
unless cloud_ips.empty?
|
||||
cloud_ips.first["public_ip"]
|
||||
else
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
def ready?
|
||||
|
|
Loading…
Add table
Reference in a new issue