From: Tom Hughes Date: Fri, 12 Nov 2021 19:07:47 +0000 (+0000) Subject: Fix path to lldpctl X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/fd1b5c3bba273140810558c086d5915d6aa53725 Fix path to lldpctl --- 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|