Skip to content
Browse files

Merge pull request #376 from ccaum/fix_ip_lookup

Make IP retrieval more reliable
  • Loading branch information...
2 parents 63c03c5 + c311c65 commit 1b63ce870d75b59b2eb4f925375431cb5dc72cdf @jedi4ever jedi4ever committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/veewee/provider/kvm/box/helper/ip.rb
View
2 lib/veewee/provider/kvm/box/helper/ip.rb
@@ -4,7 +4,7 @@ module Kvm
module BoxCommand
def ip_address
ip=@connection.servers.all(:name => "#{name}").first.public_ip_address
- return ip.first unless ip.nil?
+ return [*ip].first unless ip.nil?
return ip
end

0 comments on commit 1b63ce8

Please sign in to comment.
Something went wrong with that request. Please try again.