diff --git a/app/models/miq_widget.rb b/app/models/miq_widget.rb index b025b9f91b9..b78492c9c37 100644 --- a/app/models/miq_widget.rb +++ b/app/models/miq_widget.rb @@ -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