From c5c004cb2488da80ab6d91cdb55c0497612d92c2 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Fri, 28 Sep 2018 18:18:35 -0400 Subject: [PATCH] Specify "any" zone via a nil zone https://bugzilla.redhat.com/show_bug.cgi?id=1629945 --- app/models/miq_widget.rb | 1 + spec/models/miq_widget_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/models/miq_widget.rb b/app/models/miq_widget.rb index 4d799fa0bd4..391daee8a5f 100644 --- a/app/models/miq_widget.rb +++ b/app/models/miq_widget.rb @@ -108,6 +108,7 @@ def queue_generate_content_for_users_or_group(*args) MiqQueue.create_with(callback).put_unless_exists( :queue_name => "reporting", :role => "reporting", + :zone => nil, # any zone :class_name => self.class.to_s, :instance_id => id, :msg_timeout => 3600, diff --git a/spec/models/miq_widget_spec.rb b/spec/models/miq_widget_spec.rb index 58c8619f1fc..5dddeb87159 100644 --- a/spec/models/miq_widget_spec.rb +++ b/spec/models/miq_widget_spec.rb @@ -273,6 +273,7 @@ def add_dashboard_for_user(db_name, userid, group) @q_options = {:queue_name => "reporting", :role => "reporting", + :zone => nil, :class_name => @widget.class.name, :instance_id => @widget.id, :msg_timeout => 3600