Skip to content

Commit

Permalink
The prompt has a space after the colon so don't anchor the end of the…
Browse files Browse the repository at this point in the history
… string
  • Loading branch information
carbonin committed Jul 12, 2019
1 parent fdc67dd commit 4f59a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/runner/credential/machine_credential.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def command_line

def write_password_file
password_hash = {
"^SSH [pP]assword:$" => auth.password,
"^BECOME [pP]assword:$" => auth.become_password
"^SSH [pP]assword:" => auth.password,
"^BECOME [pP]assword:" => auth.become_password
}.delete_blanks

File.write(password_file, password_hash.to_yaml) if password_hash.present?
Expand Down

0 comments on commit 4f59a2d

Please sign in to comment.