]> git.openstreetmap.org Git - chef.git/commitdiff
Fix path to lldpctl
authorTom Hughes <tom@compton.nu>
Fri, 12 Nov 2021 19:07:47 +0000 (19:07 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 12 Nov 2021 19:07:47 +0000 (19:07 +0000)
cookbooks/hardware/templates/default/lldp.rb.erb

index 15e35050ad8c0759f2710468184a1e9adb83d313..6ccd1cdfa4c73e89bf456e12f7f3e1632b2c702e 100644 (file)
@@ -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|