Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #233 from dirkmueller/master
Browse files Browse the repository at this point in the history
Do not rely on DMI information being available
  • Loading branch information
vuntz committed Feb 3, 2015
2 parents 112eeff + d08ba8d commit dbcd656
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chef/cookbooks/barclamp/libraries/barclamp_library.rb
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ def unique_name
disk_lookups = []
end
end
unless @node[:dmi][:system][:product_name] =~ /VirtualBox/i
hardware = @node[:dmi][:system][:product_name] rescue "unknown"
unless hardware =~ /VirtualBox/i
disk_lookups.unshift "by-id"
end
disk_lookups.each do |n|
Expand Down

0 comments on commit dbcd656

Please sign in to comment.