From 374f9f85990393a3948657b6c21e1bf7edc3a743 Mon Sep 17 00:00:00 2001 From: Giacomo Marciani Date: Wed, 26 Oct 2022 00:13:15 +0200 Subject: [PATCH] Fix command used to validate MySQL client version in Ubuntu. Signed-off-by: Giacomo Marciani --- cookbooks/aws-parallelcluster-test/libraries/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/aws-parallelcluster-test/libraries/helpers.rb b/cookbooks/aws-parallelcluster-test/libraries/helpers.rb index dc28dd860..ebac38b56 100644 --- a/cookbooks/aws-parallelcluster-test/libraries/helpers.rb +++ b/cookbooks/aws-parallelcluster-test/libraries/helpers.rb @@ -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