Skip to content

Commit 374f9f8

Browse files
committed
Fix command used to validate MySQL client version in Ubuntu.
Signed-off-by: Giacomo Marciani <mgiacomo@amazon.com>
1 parent 3db6640 commit 374f9f8

File tree

1 file changed

+1
-1
lines changed
  • cookbooks/aws-parallelcluster-test/libraries

1 file changed

+1
-1
lines changed

cookbooks/aws-parallelcluster-test/libraries/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def validate_package_version(package, expected_version)
265265
when 'amazon', 'centos'
266266
test_expression = "$(yum info installed #{package} | grep 'Version' | awk '{print $3}')"
267267
when 'ubuntu'
268-
test_expression = "$(apt list --installed #{package} | awk '{print $2}')"
268+
test_expression = "$(apt list --installed #{package} | awk '{printf \"%s\", $2}')"
269269
else
270270
raise "Platform not supported: #{node['platform']}"
271271
end

0 commit comments

Comments
 (0)