From 52b90342fa2d700915638fd9e5052200a0f41683 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 2 Dec 2022 18:17:30 +0000 Subject: [PATCH] prometheus: Fix Mac ARM compatibility (kitchen) ohai on Apple Mac M1 in Docker does not not populate node[:cpu] due to lscpu compatibility issue. Signed-off-by: Grant Slater --- cookbooks/prometheus/resources/exporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index 6a17ef3ff..c8b4e0cd8 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -125,7 +125,7 @@ action_class do end def executable_architecture - node[:cpu][:architecture] + node[:kernel][:machine] end def executable_options -- 2.39.5