Skip to content

Commit

Permalink
Merge pull request #19166 from yrudman/fix-typo-in-warning-message
Browse files Browse the repository at this point in the history
Fixed typo in warning log

(cherry picked from commit 52f5029)

https://bugzilla.redhat.com/show_bug.cgi?id=1763862
  • Loading branch information
bdunne authored and simaishi committed Oct 21, 2019
1 parent c8b91c3 commit 85e92a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/miq_schedule_worker/scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/models/miq_schedule_worker/scheduler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 85e92a1

Please sign in to comment.