diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-11-06 22:08:04 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-11-06 22:08:04 -0800 |
commit | d349205dd3aa735221a4d1ee0814ded8dc74ee33 (patch) | |
tree | 5497378e769b587b0436881a272c0cd57ca10670 | |
parent | 1b82be4658be799e4ef47d68eee81a543d39ea5e (diff) | |
download | ohai-lsb.tar.gz |
Remove the line anchor from the LSB plugin matcheslsb
These are 1 line at a time matches and we want everything until the end. There's no point in doing it this way.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/ohai/plugins/linux/lsb.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ohai/plugins/linux/lsb.rb b/lib/ohai/plugins/linux/lsb.rb index 0f3497b7..dcad4faa 100644 --- a/lib/ohai/plugins/linux/lsb.rb +++ b/lib/ohai/plugins/linux/lsb.rb @@ -27,13 +27,13 @@ Ohai.plugin(:LSB) do # From package redhat-lsb on Fedora/Redhat, lsb-release on Debian/Ubuntu shell_out("lsb_release -a").stdout.lines do |line| case line - when /^Distributor ID:\s+(.+)$/ + when /^Distributor ID:\s+(.+)/ lsb[:id] = $1 - when /^Description:\s+(.+)$/ + when /^Description:\s+(.+)/ lsb[:description] = $1 - when /^Release:\s+(.+)$/ + when /^Release:\s+(.+)/ lsb[:release] = $1 - when /^Codename:\s+(.+)$/ + when /^Codename:\s+(.+)/ lsb[:codename] = $1 else lsb[:id] = line |