diff options
author | Tim Smith <tsmith84@gmail.com> | 2016-04-20 10:17:47 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2016-04-20 10:17:47 -0700 |
commit | ba549e9c5164762ffd4a9206ec798c52925dda1c (patch) | |
tree | 4fccca764a8fa8447f74feae9cdd192a34507ef7 | |
parent | 9739313021b117773a0efc6d6b76e06fa66128d7 (diff) | |
download | ohai-ba549e9c5164762ffd4a9206ec798c52925dda1c.tar.gz |
Fix indentation
-rw-r--r-- | lib/ohai/plugins/go.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/ohai/plugins/go.rb b/lib/ohai/plugins/go.rb index 27483ad8..788ad5ef 100644 --- a/lib/ohai/plugins/go.rb +++ b/lib/ohai/plugins/go.rb @@ -19,18 +19,18 @@ Ohai.plugin(:Go) do collect_data do begin - so = shell_out("go version") - # Sample output: - # go version go1.6.1 darwin/amd64 - if so.exitstatus == 0 - if so.stdout =~ /go(\S+)/ - go = Mash.new - go[:version] = $1 - languages[:go] = go - end + so = shell_out("go version") + # Sample output: + # go version go1.6.1 darwin/amd64 + if so.exitstatus == 0 + if so.stdout =~ /go(\S+)/ + go = Mash.new + go[:version] = $1 + languages[:go] = go end - rescue Ohai::Exceptions::Exec - Ohai::Log.debug('Go plugin: Could not shell_out "go version". Skipping plugin') end + rescue Ohai::Exceptions::Exec + Ohai::Log.debug('Go plugin: Could not shell_out "go version". Skipping plugin') + end end end |