Skip to content

Commit

Permalink
Specify "any" zone via a nil zone
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Oct 1, 2018
1 parent 2e9744c commit 01f6f3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/miq_widget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions spec/models/miq_widget_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01f6f3f

Please sign in to comment.