diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-09-17 12:17:40 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-09-17 12:17:40 +0530 |
commit | 38d4c95c3195a5b64d38c99ea09d56f16da54b77 (patch) | |
tree | 35c16e9d58d2d81408db7f06340772ea41bdb328 | |
parent | d5c2f93c654f2c2f070c336290cde472b9bc4ba3 (diff) | |
download | chef-38d4c95c3195a5b64d38c99ea09d56f16da54b77.tar.gz |
Fix AIX su password match string
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index e996b36c84..ad7b01daab 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -608,7 +608,7 @@ class Chef def bootstrap_run_command(cmd, limit = 3) r = connection.run_command(cmd) do |data, ch| ui.msg("#{ui.color(" [#{connection.hostname}]", :cyan)} #{data}") - ch.send_data("#{config[:su_password] || config[:connection_password]}\n") if data == "Password: " + ch.send_data("#{config[:su_password] || config[:connection_password]}\n") if data.match?("Password:") end if r.exit_status != 0 stderr = (r.stderr + r.stdout).strip |