summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-04-25 12:18:25 +0100
committerThom May <thom@may.lt>2016-04-25 12:18:25 +0100
commitc53ddb98891b555c3b2296f3128f651d1c88cbc5 (patch)
treeaaad5c79a5d25b237dcb6b7da3fbf0035d95a44a
parenta5bab48f9a65c10c468114b2145ef15925101165 (diff)
parent69a56937c9df1b76f8688a51c48655bb2a00e89e (diff)
downloadohai-c53ddb98891b555c3b2296f3128f651d1c88cbc5.tar.gz
Merge pull request #813 from glensc/patch-1
Update packages plugin to support PLD Linux as an RPM distro
-rw-r--r--lib/ohai/plugins/packages.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/packages.rb b/lib/ohai/plugins/packages.rb
index 533c5b91..44874944 100644
--- a/lib/ohai/plugins/packages.rb
+++ b/lib/ohai/plugins/packages.rb
@@ -39,7 +39,7 @@ Ohai.plugin(:Packages) do
packages[name] = { "version" => version }
end
- elsif %w{rhel fedora suse}.include? platform_family
+ elsif %w{rhel fedora suse pld}.include? platform_family
require "shellwords"
format = Shellwords.escape '%{NAME}\t%{VERSION}\t%{RELEASE}\n'
so = shell_out("rpm -qa --queryformat #{format}")