lib/kitchen/provisioner/finder/winrm.rb in kitchen-nodes-0.6.4 vs lib/kitchen/provisioner/finder/winrm.rb in kitchen-nodes-0.6.5
- old
+ new
@@ -25,10 +25,10 @@
out = @connection.node_execute(
'Get-NetIPConfiguration | % { $_.ipv4address.IPAddress }')
data = []
out[:data].each do |out_data|
stdout = out_data[:stdout]
- data << stdout.chomp unless stdout.nil?
+ data << stdout.chomp unless stdout.nil? || stdout.chomp.empty?
end
data
end
def find_fqdn