diff options
Diffstat (limited to 'lib/ohai/plugins/erlang.rb')
-rw-r--r-- | lib/ohai/plugins/erlang.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ohai/plugins/erlang.rb b/lib/ohai/plugins/erlang.rb index 2409a7e1..e398fc61 100644 --- a/lib/ohai/plugins/erlang.rb +++ b/lib/ohai/plugins/erlang.rb @@ -25,10 +25,9 @@ Ohai.plugin do output = nil erlang = Mash.new - status, stdout, stderr = run_command(:no_status_check => true, :command => "erl +V") - - if status == 0 - output = stderr.split + so = shell_out("erl +V") + if so.exitstatus == 0 + output = so.stderr.split if output.length >= 6 options = output[1] options.gsub!(/(\(|\))/, '') |