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
4 changes: 2 additions & 2 deletions lib/toaster/model/automation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def initialize(attr_hash)
def get_globally_executed_tasks()
exec_tasks = Task.
joins(:task_executions => {:automation_run => :automation}).
where("automation_runs.automation_id = #{self.id}").
where("automation_runs.automation_id = #{self.uuid}").
distinct()
return exec_tasks if !exec_tasks.empty?
return tasks
Expand Down Expand Up @@ -72,7 +72,7 @@ def get_task_execs_by_run()

def get_all_test_cases()
TestCase.joins(:automation_run => :automation).where(
"automations.id = #{self.id}")
"automations.id = #{self.uuid}")
end

def is_chef?
Expand Down