lib/jss-api/api_connection.rb in jss-api-0.5.6 vs lib/jss-api/api_connection.rb in jss-api-0.5.7

- old
+ new

@@ -180,10 +180,10 @@ # prep the args for passing to RestClient::Resource # if verify_cert is nil (unset) or non-false, then we will verify args[:verify_ssl] = (args[:verify_cert].nil? or args[:verify_cert]) ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE args[:password] = if args[:pw] == :prompt - JSS.prompt_for_password "Enter the password for JSS user '#{args[:user]}':" + JSS.prompt_for_password "Enter the password for JSS user #{args[:user]}@#{args[:server]}:" elsif args[:pw].is_a?(Symbol) and args[:pw].to_s.start_with?('stdin') args[:pw].to_s =~ /^stdin(\d+)$/ line = $1 line ||= 1 JSS.stdin line