Skip to content

Commit

Permalink
winrm: hide password
Browse files Browse the repository at this point in the history
* simply reported what already exists in ssh_connection
  • Loading branch information
Laurent CREPET committed Mar 22, 2017
1 parent 32ccef2 commit bbcc6cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/train/transports/winrm_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ def session(retry_options = {})
#
# @api private
def to_s
"<#{options.inspect}>"
options_to_print = @options.clone
options_to_print[:password] = '<hidden>' if options_to_print.key?(:password)
"#{@username}@#{@hostname}<#{options_to_print.inspect}>"
end

class OS < OSCommon
Expand Down

0 comments on commit bbcc6cb

Please sign in to comment.