Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/rundeck/client/execution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ def execute_job(id, options = {})
# @return [Rundeck::ObjectifiedHash]
# @!macro exceptions
def job_executions(id, options = {})
r = get("/job/#{id}/executions", options)['result']['executions']
objectify r
r = get("/job/#{id}/executions", options)
# Temporary fix for https://github.com/dblessing/rundeck-ruby/issues/25
begin
objectify r['result']['executions']
rescue
objectify r['executions']
end
end

# Get all running job executions
Expand Down