From 46d9bc23469820b07b7a50b12652303a64c0fbb7 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 20 Sep 2022 22:39:11 +0100 Subject: [PATCH] apt: Simplify apt arch condition --- cookbooks/apt/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/apt/recipes/default.rb b/cookbooks/apt/recipes/default.rb index 198a4b88d..fc5341ec5 100644 --- a/cookbooks/apt/recipes/default.rb +++ b/cookbooks/apt/recipes/default.rb @@ -39,7 +39,7 @@ apt_update "/etc/apt/sources.list" do action :nothing end -if node[:kernel][:machine] == "x86_64" +if intel? archive_host = if node[:country] "#{node[:country]}.archive.ubuntu.com" else -- 2.39.5