summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2016-11-29 14:47:38 -0800
committerTim Smith <tsmith@chef.io>2016-11-29 14:47:38 -0800
commit860a0c200c115ca7a711325bb44cd6d266ca4360 (patch)
treece0eaa6088896bcac27814e1720af2bdc867f06c
parentedc52262f5ad633cf36f279955980c31ec70f8c5 (diff)
downloadohai-860a0c200c115ca7a711325bb44cd6d266ca4360.tar.gz
Set the attribute to nil vs. reading the file twice
Nil is used throughout Ohai Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/ohai/plugins/joyent.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/joyent.rb b/lib/ohai/plugins/joyent.rb
index 3ca3078d..8ec88dee 100644
--- a/lib/ohai/plugins/joyent.rb
+++ b/lib/ohai/plugins/joyent.rb
@@ -73,7 +73,7 @@ Ohai.plugin(:Joyent) do
end
## retrieve pkgsrc
- joyent[:sm_pkgsrc] = collect_pkgsrc if collect_pkgsrc
+ joyent[:sm_pkgsrc] = collect_pkgsrc
end
end
end