From: Tom Hughes Date: Tue, 18 Oct 2016 09:22:16 +0000 (+0100) Subject: Fix foodcritic warning X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/01efcdfb1287aa647751c28e33101323c065ae3d Fix foodcritic warning --- diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 35e31ea2e..1308f44fc 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -78,19 +78,10 @@ end # Remove legacy HP G4 support which breaks modern hp-health 10.4 if manufacturer == "HP" - file "/opt/hp/hp-health/bin/hpasmd" do - action :delete - end - file "/usr/lib/libhpasmintrfc.so.3.0" do - action :delete - end - - file "/usr/lib/libhpasmintrfc.so.3" do - action :delete - end - - file "/usr/lib/libhpasmintrfc.so" do - action :delete + %w(/opt/hp/hp-health/bin/hpasmd /usr/lib/libhpasmintrfc.so.3.0 %/usr/lib/libhpasmintrfc.so.3 /usr/lib/libhpasmintrfc.so).each do |filename| + file filename do + action :delete + end end directory "/opt/hp/hp-legacy" do