Stylistically might be worth considering

```ruby
case image_type
when 'kvm', 'xen'
...
```

Obviously no biggie though :)