1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[Libvirt] initialize the ip_address as an empty string

This commit is contained in:
Patrick Debois 2011-09-12 18:42:16 +03:00
parent 31ab178dac
commit 384b7e528d

View file

@ -342,6 +342,9 @@ module Fog
end
# Execute the ip_command locally
# Initialize empty ip_address string
ip_address=""
IO.popen("#{ip_command}") do |p|
p.each_line do |l|
ip_address+=l