lib/veewee/provider/kvm/box/helper/ip.rb in veewee-0.3.0.beta1 vs lib/veewee/provider/kvm/box/helper/ip.rb in veewee-0.3.0.beta2
- old
+ new
@@ -1,11 +1,11 @@
module Veewee
module Provider
module Kvm
module BoxCommand
def ip_address
- ip=@connection.servers.all(:name => "#{name}").first.addresses[:public]
- return ip.first unless ip.nil?
+ ip=@connection.servers.all(:name => "#{name}").first.public_ip_address
+ return [*ip].first unless ip.nil?
return ip
end
end # End Module
end # End Module