diff options
author | Tim Smith <tsmith@chef.io> | 2019-06-13 13:49:08 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-06-13 13:49:08 -0700 |
commit | 5baab4acaa099b98eaabc7c76d45db4e05404ce8 (patch) | |
tree | cf90137285fbf86f3d112cb87ea3063d3d1a4943 | |
parent | 195cffd2a6292d1a8b62d06ea0f3a1f8f74ff4a2 (diff) | |
download | ohai-5baab4acaa099b98eaabc7c76d45db4e05404ce8.tar.gz |
Update logic to skip based on the right valuevirtualbox
Signed-off-by: Tim Smith <tsmith@chef.io>
-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 |