Skip to content

Commit

Permalink
Merge pull request #18169 from lpichler/remove_usage_of_deprecated_Mi…
Browse files Browse the repository at this point in the history
…qSchedule#towhat

Remove deprecated usage of MiqSchedule#towhat
  • Loading branch information
bdunne authored Nov 12, 2018
2 parents f489784 + 6471223 commit 08385fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_report/schedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module MiqReport::Schedule

def remove_associated_schedules
_log.info("Removing any schedules associated with report: #{id}")
report_schedules = MiqSchedule.where(:towhat => self.class.name)
report_schedules = MiqSchedule.where(:resource_type => self.class.name)
report_schedules.each do |sch|
ids = sch.target_ids
_log.info("Schedule id: #{sch.id}, targets: #{ids.inspect}")
Expand Down

0 comments on commit 08385fe

Please sign in to comment.