diff --git a/lib/rundeck/client/execution.rb b/lib/rundeck/client/execution.rb index f6800f7..af4e155 100644 --- a/lib/rundeck/client/execution.rb +++ b/lib/rundeck/client/execution.rb @@ -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