Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Skip KVM device translation if no devices found.
  • Loading branch information
kvs committed Oct 4, 2013
1 parent e2e8761 commit 6fb22be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attributes/default.rb
Expand Up @@ -10,7 +10,7 @@
default[:ebs][:initrd_md5] = ''


if BlockDevice.on_kvm?
if BlockDevice.on_kvm? && ebs[:devices]
Chef::Log.info("Running on QEMU/KVM: Need to translate device names as KVM allocates them regardless of the given device ID")
ebs_devices = {}

Expand Down

0 comments on commit 6fb22be

Please sign in to comment.