diff --git a/cookbooks/aws-parallelcluster-shared/resources/package_repos/package_repos_alinux2.rb b/cookbooks/aws-parallelcluster-shared/resources/package_repos/package_repos_alinux2.rb index 82bb73ed0..d8c10e3b1 100644 --- a/cookbooks/aws-parallelcluster-shared/resources/package_repos/package_repos_alinux2.rb +++ b/cookbooks/aws-parallelcluster-shared/resources/package_repos/package_repos_alinux2.rb @@ -22,7 +22,7 @@ action :setup do include_recipe 'yum' alinux_extras_topic 'epel' - if region.start_with?("us-iso") + if aws_region.start_with?("us-iso") bash "Disable epel repo" do user 'root' group 'root'