From cc1d6c8c538e6de225604faec2413455d0747f9f Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 14 Oct 2022 13:37:18 +0100 Subject: [PATCH] dns: use cookstyle auto correct format --- cookbooks/dns/recipes/default.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/dns/recipes/default.rb b/cookbooks/dns/recipes/default.rb index e1233775f..d7d038c30 100644 --- a/cookbooks/dns/recipes/default.rb +++ b/cookbooks/dns/recipes/default.rb @@ -43,7 +43,11 @@ cache_dir = Chef::Config[:file_cache_path] dnscontrol_version = "3.20.0" -dnscontrol_arch = arm? ? "arm64" : "amd64" +dnscontrol_arch = if arm? + "arm64" + else + "amd64" + end remote_file "#{cache_dir}/dnscontrol-#{dnscontrol_version}.deb" do source "https://github.com/StackExchange/dnscontrol/releases/download/v#{dnscontrol_version}/dnscontrol-#{dnscontrol_version}.#{dnscontrol_arch}.deb" -- 2.39.5