Skip to content

Commit

Permalink
Merge pull request ManageIQ#16706 from hsong-rh/purge_queue_args
Browse files Browse the repository at this point in the history
Fixes wrong number of arguments in purge_queue
  • Loading branch information
agrare authored Dec 21, 2017
2 parents a756cf9 + b798398 commit ffb458e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/mixins/purging_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def purge_timer
purge_queue(*purge_mode_and_value)
end

def purge_queue(mode, value)
def purge_queue(mode, value = nil)
MiqQueue.submit_job(
:class_name => name,
:method_name => "purge_by_#{mode}",
Expand Down

0 comments on commit ffb458e

Please sign in to comment.