Skip to content

Commit 5ff8dde

Browse files
lukeseawalkerdemartinofra
authored andcommitted
Fix AWS regions Kitchen test
Fix test when partition is not commercial Signed-off-by: Luca Carrogu <[email protected]>
1 parent 581f034 commit 5ff8dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/tests.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
cwd Chef::Config[:file_cache_path]
3131
code <<-AWSREGIONS
3232
export PATH="/usr/local/bin:/usr/bin/:$PATH"
33-
regions=($(#{node['cfncluster']['cookbook_virtualenv_path']}/bin/aws ec2 describe-regions --region us-east-1 --query "Regions[].{Name:RegionName}" --output text))
33+
regions=($(#{node['cfncluster']['cookbook_virtualenv_path']}/bin/aws ec2 describe-regions --region #{node['cfncluster']['cfn_region']} --query "Regions[].{Name:RegionName}" --output text))
3434
for region in "${regions[@]}"
3535
do
3636
#{node['cfncluster']['cookbook_virtualenv_path']}/bin/aws ec2 describe-regions --region "${region}" >/dev/null 2>&1 || exit 1

0 commit comments

Comments
 (0)