Skip to content

Commit

Permalink
[fix_checking_credentials] Using User.search for checking credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
thangnc committed Nov 16, 2017
1 parent 096dea7 commit 373849d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/embulk/input/jira_api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def total_count(jql)
end

def check_user_credential(username)
Jiralicious::Issue.find(username)
Jiralicious::User.search(username)
rescue Jiralicious::JqlError, Jiralicious::AuthenticationError, Jiralicious::NotLoggedIn, Jiralicious::InvalidLogin => e
raise Embulk::ConfigError.new(e.message)
rescue ::SocketError => e
Expand Down

0 comments on commit 373849d

Please sign in to comment.