lib/jss/api_connection.rb in ruby-jss-0.13.0 vs lib/jss/api_connection.rb in ruby-jss-0.14.0
- old
+ new
@@ -1017,10 +1017,10 @@
# However, it's marked as 'deprecated'. Hopefully jamf will
# keep this basic level of info available for basic authentication
# and JSS version checking.
begin
@server = JSS::Server.new get_rsrc('jssuser')[:user], self
- rescue RestClient::Unauthorized, RestClient::Request::Unauthorized
+ rescue RestClient::Unauthorized
raise JSS::AuthenticationError, "Incorrect JSS username or password for '#{@jss_user}@#{@server_host}:#{@port}'."
end
min_vers = JSS.parse_jss_version(JSS::MINIMUM_SERVER_VERSION)[:version]
return unless @server.version < min_vers