Permalink
Browse files

Issue #4: the asset tag lookup function fails is ohai doesn't populat…

…e a chassis/serial_number field. This seems to happen on VirtualBox installations.
  • Loading branch information...
1 parent 6d5c03f commit babb8c0e1fedca348793f6cefe798c899365cfaf Greg Althaus committed Aug 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 change-image/dell/openstack_manager/app/models/node_object.rb
@@ -216,7 +216,7 @@ def uptime
end
def asset_tag
- @node["dmi"]["chassis"]["serial_number"]
+ @node["dmi"]["chassis"]["serial_number"] rescue nil
end
def number_of_drives

0 comments on commit babb8c0

Please sign in to comment.