]> git.openstreetmap.org Git - chef.git/commitdiff
Don't try and install kernel modules when running tests
authorTom Hughes <tom@compton.nu>
Wed, 10 Nov 2021 22:22:23 +0000 (22:22 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 10 Nov 2021 22:22:52 +0000 (22:22 +0000)
cookbooks/hardware/recipes/default.rb

index 7736cd507c7aa6a34a6bcfa9cc84a47768a11948..7f1431320dd389d532e6157db5852150965a720b 100644 (file)
@@ -547,6 +547,7 @@ end
 node[:hardware][:modules].each do |module_name|
   kernel_module module_name do
     action :install
+    not_if { kitchen? }
   end
 end