diff options
author | Thom May <thom@may.lt> | 2016-04-25 12:18:25 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2016-04-25 12:18:25 +0100 |
commit | c53ddb98891b555c3b2296f3128f651d1c88cbc5 (patch) | |
tree | aaad5c79a5d25b237dcb6b7da3fbf0035d95a44a | |
parent | a5bab48f9a65c10c468114b2145ef15925101165 (diff) | |
parent | 69a56937c9df1b76f8688a51c48655bb2a00e89e (diff) | |
download | ohai-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.rb | 2 |
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}") |