From b798398b1e16a9f05b7875d69e1ad557a2c26434 Mon Sep 17 00:00:00 2001 From: hsong-rh Date: Wed, 20 Dec 2017 16:45:36 -0500 Subject: [PATCH] Fixes wrong arguments in purge_queue Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1527166 --- app/models/mixins/purging_mixin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mixins/purging_mixin.rb b/app/models/mixins/purging_mixin.rb index cdcc95ef023..ba52e479b8a 100644 --- a/app/models/mixins/purging_mixin.rb +++ b/app/models/mixins/purging_mixin.rb @@ -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}",