0001-Temp.-fix-for-xen-poll-script-when-headers-are-not-p.patch
src/vmm_mad/remotes/poll_xen_kvm.rb | ||
---|---|---|
198 | 198 |
lines=text.strip.split("\n") |
199 | 199 |
block_size=lines.length/2 |
200 | 200 |
valid_lines=lines.last(block_size) |
201 |
|
|
202 |
domain_lines=valid_lines[4..-1] |
|
201 | ||
202 |
first_domain = valid_lines.index{ |l| |
|
203 |
l.match 'NAME STATE' |
|
204 |
} + 1 |
|
205 | ||
206 |
domain_lines=valid_lines[first_domain..-1] |
|
203 | 207 |
|
204 | 208 |
domains=Hash.new |
205 | 209 |
|
206 |
- |