From fd1b5c3bba273140810558c086d5915d6aa53725 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 12 Nov 2021 19:07:47 +0000 Subject: [PATCH] Fix path to lldpctl --- cookbooks/hardware/templates/default/lldp.rb.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/hardware/templates/default/lldp.rb.erb b/cookbooks/hardware/templates/default/lldp.rb.erb index 15e35050a..6ccd1cdfa 100644 --- a/cookbooks/hardware/templates/default/lldp.rb.erb +++ b/cookbooks/hardware/templates/default/lldp.rb.erb @@ -6,7 +6,7 @@ Ohai.plugin(:Lldp) do collect_data(:default) do lldp Mash.new - json = JSON.parse(%x(/sbin/lldpctl -f json)) + json = JSON.parse(%x(/usr/sbin/lldpctl -f json)) json["lldp"]["interface"].each do |interface| interface.each do |name, details| -- 2.39.5