GitLab upgraded to 13.8.1-ee.0 - changelog: https://gitlab.com/gitlab-org/gitlab/blob/master/CHANGELOG-EE.md

Commit a98dd45d authored by Eammon Hanlon's avatar Eammon Hanlon Committed by Tim Smith

Fix definition of parallels? (#174)

Parallels Desktop appears as node['virtualization']['systems'] == 'parallels' not 'Parallels'
parent a2c50932
......@@ -55,7 +55,7 @@ class Chef
# otherwise
#
def parallels?(node)
node.key?('virtualization') && node['virtualization']['system'] == 'Parallels'
node.key?('virtualization') && node['virtualization']['system'] == 'parallels'
end
#
......
......@@ -39,7 +39,7 @@ describe Chef::Sugar::Virtualization do
describe '#parallels?' do
it 'returns true when the machine is under parallels' do
node = { 'virtualization' => { 'system' => 'Parallels' } }
node = { 'virtualization' => { 'system' => 'parallels' } }
expect(described_class.parallels?(node)).to be true
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment