summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2014-01-17 15:09:07 -0800
committerAdam Edwards <adamed@opscode.com>2014-01-17 15:09:07 -0800
commit83fb5aa09243bb599c86fd9940c39a6c77e8804a (patch)
treec0ce01869b6e0d95e2964f24388ee1e94122f15a
parent2e20e3b1dce05ed3489488bed1e55a49406600c6 (diff)
parentcf8e04acda04544d3c6f91c772140d358cc045c7 (diff)
downloadohai-83fb5aa09243bb599c86fd9940c39a6c77e8804a.tar.gz
Merge pull request #282 from opscode/adamed-ms-c-fix
OC-11083 MS C compiler plugin regression -- trailing return character removal
-rw-r--r--lib/ohai/plugins/c.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/c.rb b/lib/ohai/plugins/c.rb
index 36bb13db..fdf798d0 100644
--- a/lib/ohai/plugins/c.rb
+++ b/lib/ohai/plugins/c.rb
@@ -62,7 +62,7 @@ Ohai.plugin(:C) do
begin
so = shell_out("cl /?")
if so.exitstatus == 0
- description = so.stderr.split($/).first
+ description = so.stderr.lines.first.chomp
if description =~ /Compiler Version ([\d\.]+)/
c[:cl] = Mash.new
c[:cl][:version] = $1