Skip to content

Commit

Permalink
Fix command used to validate MySQL client version in Ubuntu.
Browse files Browse the repository at this point in the history
Signed-off-by: Giacomo Marciani <[email protected]>
  • Loading branch information
gmarciani committed Oct 25, 2022
1 parent 3db6640 commit 374f9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/aws-parallelcluster-test/libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def validate_package_version(package, expected_version)
when 'amazon', 'centos'
test_expression = "$(yum info installed #{package} | grep 'Version' | awk '{print $3}')"
when 'ubuntu'
test_expression = "$(apt list --installed #{package} | awk '{print $2}')"
test_expression = "$(apt list --installed #{package} | awk '{printf \"%s\", $2}')"
else
raise "Platform not supported: #{node['platform']}"
end
Expand Down

0 comments on commit 374f9f8

Please sign in to comment.