From 85e92a1510f84c30b845d4862fd8d9f3c66c1931 Mon Sep 17 00:00:00 2001 From: Brandon Dunne Date: Mon, 19 Aug 2019 13:45:54 -0400 Subject: [PATCH] Merge pull request #19166 from yrudman/fix-typo-in-warning-message Fixed typo in warning log (cherry picked from commit 52f50296e5aa6a3b9acae22d721dbe1e722f33ca) https://bugzilla.redhat.com/show_bug.cgi?id=1763862 --- app/models/miq_schedule_worker/scheduler.rb | 2 +- spec/models/miq_schedule_worker/scheduler_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/miq_schedule_worker/scheduler.rb b/app/models/miq_schedule_worker/scheduler.rb index 37068120cfc..6ea99e28cca 100644 --- a/app/models/miq_schedule_worker/scheduler.rb +++ b/app/models/miq_schedule_worker/scheduler.rb @@ -15,7 +15,7 @@ def initialize(logger, role_schedule, rufus_scheduler) def schedule_every(duration = nil, callable = nil, opts = {}, &block) if duration.blank? - logger.warn("Duration is empty, scheduling ingnored. Called from: #{block}.") + logger.warn("Duration is empty, scheduling ignored. Called from: #{block}.") return end diff --git a/spec/models/miq_schedule_worker/scheduler_spec.rb b/spec/models/miq_schedule_worker/scheduler_spec.rb index 2db3fd683ce..43b40e408f0 100644 --- a/spec/models/miq_schedule_worker/scheduler_spec.rb +++ b/spec/models/miq_schedule_worker/scheduler_spec.rb @@ -50,7 +50,7 @@ context "with different parmeters" do it "interprets first arg nil as trigger to skip scheduling" do - expect(logger).to receive(:warn).once.with(/Duration is empty, scheduling ingnored/) + expect(logger).to receive(:warn).once.with(/Duration is empty, scheduling ignored/) scheduler.schedule_every(nil) {} end