summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-09-10 18:48:45 +0530
committerTim Smith <tsmith84@gmail.com>2021-02-02 11:57:52 -0800
commit98befd2bdf04e00fbd8ea5b59a88d84e83945f65 (patch)
treed3eb9f436b20aa5d177b690742dfd9f7fcab4cfc
parent925e7bf4132df9997e3e092818cda69e0e375efc (diff)
downloadchef-98befd2bdf04e00fbd8ea5b59a88d84e83945f65.tar.gz
Fixed test case failure
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-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 d7eb9490e7..44561d64bd 100644
--- a/lib/chef/knife/bootstrap.rb
+++ b/lib/chef/knife/bootstrap.rb
@@ -604,7 +604,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 3797207b6d..75a4f8ed7d 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -1726,7 +1726,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"