From bd9858f1cf44009c3fdb5ee75c8239d5b8736a2f Mon Sep 17 00:00:00 2001 From: Stefan - Zipkid - Goethals Date: Thu, 1 Sep 2022 11:04:04 +0200 Subject: [PATCH] Use structured fact for Jenkins plugin list --- lib/facter/jenkins.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/facter/jenkins.rb b/lib/facter/jenkins.rb index 60af7209a..c9d0522a2 100644 --- a/lib/facter/jenkins.rb +++ b/lib/facter/jenkins.rb @@ -10,7 +10,6 @@ Facter.add(:jenkins_plugins) do confine kernel: 'Linux' setcode do - plugins = Puppet::Jenkins::Plugins.available - plugins.keys.sort.map { |plugin| "#{plugin} #{plugins[plugin][:plugin_version]}" }.join(', ') + Puppet::Jenkins::Plugins.available end -end +end \ No newline at end of file