Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit babb8c0e1fedca348793f6cefe798c899365cfaf 1 parent 6d5c03f
@galthaus galthaus authored
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.