summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-09-10 18:48:45 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-09-17 09:21:43 +0530
commit507b0c9fc8c9a1211f7de494bc04d3ea05fa42fd (patch)
tree0dd373ddd76a0de2cae1e301943c4d5da6380038
parent8d2a18d850f8faa2845941d3a8928a9f1d738742 (diff)
downloadchef-507b0c9fc8c9a1211f7de494bc04d3ea05fa42fd.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 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"