Skip to content

Commit

Permalink
Fixes wrong arguments in purge_queue
Browse files Browse the repository at this point in the history
  • Loading branch information
hsong-rh committed Dec 20, 2017
1 parent faeac8b commit b798398
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 b798398

Please sign in to comment.