diff options
-rw-r--r-- | lib/ohai/plugins/virtualbox.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/virtualbox.rb b/lib/ohai/plugins/virtualbox.rb index 8d158108..34743315 100644 --- a/lib/ohai/plugins/virtualbox.rb +++ b/lib/ohai/plugins/virtualbox.rb @@ -64,7 +64,7 @@ Ohai.plugin(:Virtualbox) do key = left.delete_prefix('"').delete_suffix('"') # skip the name attribute since that is the parent key - next if left == "name" + next if key == "name" vm[key.downcase] = right.delete_prefix('"').delete_suffix('"') end |