Skip to content

Commit

Permalink
Move default filtered event names to Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jan 27, 2025
1 parent 5f7aeb5 commit aa4f35a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
11 changes: 0 additions & 11 deletions app/models/manageiq/providers/ovirt/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,6 @@ def self.host_vendor
"ovirt".freeze
end

def self.default_blacklisted_event_names
%w(
UNASSIGNED
USER_REMOVE_VG
USER_REMOVE_VG_FAILED
USER_VDC_LOGIN
USER_VDC_LOGOUT
USER_VDC_LOGIN_FAILED
)
end

def self.without_iso_datastores
includes(:iso_datastore).where(:iso_datastores => {:id => nil})
end
Expand Down
8 changes: 7 additions & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
:service:
:read_timeout: 1.hour
:open_timeout: 1.minute
:blacklisted_event_names: []
:blacklisted_event_names:
- UNASSIGNED
- USER_REMOVE_VG
- USER_REMOVE_VG_FAILED
- USER_VDC_LOGIN
- USER_VDC_LOGOUT
- USER_VDC_LOGIN_FAILED
:event_handling:
:event_groups:
:console:
Expand Down

0 comments on commit aa4f35a

Please sign in to comment.