summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/knife/bootstrap.rb2
-rw-r--r--spec/unit/knife/bootstrap_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb
index 31ce53601c..de449d656b 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -603,7 +603,7 @@ class Chef
bootstrap_run_command(cmd)
end
- # Actual bootstrap command to perform on the node.
+ # Actual bootstrap command to be run on the node.
# Handles recursive calls if su USER failed to authenticate.
def bootstrap_run_command(cmd)
r = connection.run_command(cmd) do |data|
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index 15a51b7f92..53c18e3b77 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -1738,7 +1738,7 @@ describe Chef::Knife::Bootstrap do
describe "#perform_bootstrap" do
let(:exit_status) { 0 }
- let(:result_mock) { double("result", exit_status: exit_status, stderr: "A message") }
+ let(:result_mock) { double("result", exit_status: exit_status, stderr: "A message", stdout: "") }
before do
allow(connection).to receive(:hostname).and_return "testhost"