summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin McNeese <cmcneese@chef.io>2021-02-15 12:43:38 -0600
committerCollin McNeese <cmcneese@chef.io>2021-02-15 12:43:38 -0600
commitb44d0fbda9fba8f3a099c4c72ab4bd3a60ee9138 (patch)
tree0ee642673e61364b09e16cf0d891ec5cbe323845
parenteff6db8ead16cecde361f1cd520ffe67b625cc71 (diff)
downloadohai-b44d0fbda9fba8f3a099c4c72ab4bd3a60ee9138.tar.gz
additional linting fixes
Signed-off-by: Collin McNeese <cmcneese@chef.io>
-rw-r--r--lib/ohai/plugins/habitat.rb2
-rw-r--r--spec/unit/plugins/habitat_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/habitat.rb b/lib/ohai/plugins/habitat.rb
index 870c8a3b..a9e7ff2d 100644
--- a/lib/ohai/plugins/habitat.rb
+++ b/lib/ohai/plugins/habitat.rb
@@ -51,7 +51,7 @@ Ohai.plugin(:Habitat) do
end
def fetch_habitat_services
- services_shell_out = shell_out(%w(hab svc status)).stdout
+ services_shell_out = shell_out(%w{hab svc status}).stdout
load_habitat_service_via_cli(services_shell_out) if services_shell_out
rescue Ohai::Exceptions::Exec
logger.trace("Plugin Habitat: No detected version of hab binary found in PATH, skipping collection.")
diff --git a/spec/unit/plugins/habitat_spec.rb b/spec/unit/plugins/habitat_spec.rb
index ce5ca113..175ae3b8 100644
--- a/spec/unit/plugins/habitat_spec.rb
+++ b/spec/unit/plugins/habitat_spec.rb
@@ -33,7 +33,7 @@ describe "plugin habitat" do
["-V"]).and_return(mock_shell_out(0, "hab 1.1.1/202001010000", ""))
allow(plugin).to receive(:shell_out).with(["hab", "pkg", "list",
"--all"]).and_return(mock_shell_out(0, pkg_result, ""))
- allow(plugin).to receive(:shell_out).with(%w[hab svc status]).and_return(mock_shell_out(0, svc_result, ""))
+ allow(plugin).to receive(:shell_out).with(%w{hab svc status}).and_return(mock_shell_out(0, svc_result, ""))
plugin.run
end