summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin McNeese <cmcneese@chef.io>2021-02-19 09:03:28 -0600
committerCollin McNeese <cmcneese@chef.io>2021-02-19 09:03:28 -0600
commit1d6e8bee679bd5e0db7f8bf84f1381ebf8ddfd7f (patch)
treec38790e002342e6a29b7f8018456de212b629c36
parentd0fc735cf5df82f4b4cb3715fb78f5d099ac5fe3 (diff)
downloadohai-1d6e8bee679bd5e0db7f8bf84f1381ebf8ddfd7f.tar.gz
Updates habitat plugin to be optional
Signed-off-by: Collin McNeese <cmcneese@chef.io>
-rw-r--r--lib/ohai/plugins/habitat.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ohai/plugins/habitat.rb b/lib/ohai/plugins/habitat.rb
index 9dad5032..0916c61d 100644
--- a/lib/ohai/plugins/habitat.rb
+++ b/lib/ohai/plugins/habitat.rb
@@ -17,6 +17,7 @@
#
Ohai.plugin(:Habitat) do
provides "habitat"
+ optional true
def habitat_binary
which("hab")