The split of this statement onto multiple lines makes this very hard to read. It would be better to expand this into a full block, like so:

```ruby
if output
  output.gsub!(/^virt-what: .*$/, '')
  output.gsub!(/^openvz$/, 'openvzve')
end
output
```