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:
parent
31ab178dac
commit
384b7e528d
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue