lib/kitchen/provisioner/finder/winrm.rb in kitchen-nodes-0.9.0 vs lib/kitchen/provisioner/finder/winrm.rb in kitchen-nodes-0.9.1
- old
+ new
@@ -24,12 +24,11 @@
def find_ips
out = @connection.node_execute(
'(ipconfig) -match \'IPv[46] Address\''
)
data = []
- out[:data].each do |out_data|
- stdout = out_data[:stdout]
- data << Regexp.last_match[1] if stdout.chomp =~ /:\s*(\S+)/
+ out.stdout.lines.each do |line|
+ data << Regexp.last_match[1] if line.chomp =~ /:\s*(\S+)/
end
data
end
def find_fqdn