diff options
author | Adam Edwards <adamed@opscode.com> | 2014-01-17 14:53:26 -0800 |
---|---|---|
committer | Adam Edwards <adamed@opscode.com> | 2014-01-17 14:53:26 -0800 |
commit | cf8e04acda04544d3c6f91c772140d358cc045c7 (patch) | |
tree | c0ce01869b6e0d95e2964f24388ee1e94122f15a /lib/ohai | |
parent | 2e20e3b1dce05ed3489488bed1e55a49406600c6 (diff) | |
download | ohai-cf8e04acda04544d3c6f91c772140d358cc045c7.tar.gz |
OC-11083 MS C compiler plugin regression -- trailing return character removal
Diffstat (limited to 'lib/ohai')
-rw-r--r-- | lib/ohai/plugins/c.rb | 2 |
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 |