Skip to content

Commit

Permalink
added loggong when schedule renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
yrudman committed Jul 24, 2019
1 parent 48128a2 commit 26c4191
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/miq_widget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,13 @@ def existing_scheduler
return sched if sched.filter == filter_for_schedule

# change name of existed schedule in case it is in use

suff = Time.new.utc.to_s
_log.warn("Schedule #{sched.name} already exists, renaming it to `#{sched.name} #{suff}`")
sched.name = "#{sched.name} #{suff}"
sched.description = "#{sched.description} #{suff}"
sched.save

nil
end

Expand Down

0 comments on commit 26c4191

Please sign in to comment.