diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2019-08-14 13:25:04 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2019-08-14 13:25:04 +0530 |
commit | 703ef2ac39833fd3883815eb77d4434dacade7ca (patch) | |
tree | f1ff77450d0b836dda8f5c01f857a599bb14f65c /spec | |
parent | 9cdf03ee25d0349459474e33f42c64d68bd900e1 (diff) | |
download | chef-703ef2ac39833fd3883815eb77d4434dacade7ca.tar.gz |
Bootstrap: Set pty true only if required
- rescue the exception and retry with pty: true if host configured with `requiretty`.
- Remove the default pty: true for all node that causes the error in the window and other hosts while detecting the system.
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/knife/bootstrap_spec.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb index 5f4be8dfa2..2d5db2a98a 100644 --- a/spec/unit/knife/bootstrap_spec.rb +++ b/spec/unit/knife/bootstrap_spec.rb @@ -1021,7 +1021,6 @@ describe Chef::Knife::Bootstrap do verify_host_key: nil, port: 9999, non_interactive: true, - pty: true, } end @@ -1076,7 +1075,6 @@ describe Chef::Knife::Bootstrap do verify_host_key: nil, # Config port: 12, # cli non_interactive: true, - pty: true, } end @@ -1128,7 +1126,6 @@ describe Chef::Knife::Bootstrap do sudo_password: "blah", verify_host_key: true, non_interactive: true, - pty: true, } end it "generates a config hash using the CLI options and pulling nothing from Chef::Config" do @@ -1152,7 +1149,6 @@ describe Chef::Knife::Bootstrap do sudo: false, verify_host_key: "always", non_interactive: true, - pty: true, connection_timeout: 60, } end @@ -1504,7 +1500,6 @@ describe Chef::Knife::Bootstrap do let(:default_opts) do { non_interactive: true, - pty: true, forward_agent: false, connection_timeout: 60, } |