1
0
Fork 0
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:
Paul Thornthwaite 2011-09-30 17:50:31 +01:00
parent bea5bfe80a
commit 4577a80010

View file

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