Project

General

Profile

« Previous | Next » 

Revision a503379a

Added by Shlomi Zadok over 7 years ago

Fixes #17842 - Adds 'type = compute_resource' to Audit search

View differences:

app/models/concerns/audit_extensions.rb
scoped_search :on => :action, :complete_value => { :create => 'create', :update => 'update', :delete => 'destroy' }
scoped_search :on => :auditable_type, :complete_value => { :host => 'Host', :parameter => 'Parameter', :architecture => 'Architecture',
:puppetclass => 'Puppetclass', :os => 'Operatingsystem', :hostgroup => 'Hostgroup',
:template => "ProvisioningTemplate", :lookupvalue => 'LookupValue',
:ssh_key => 'KeyPair'}, :rename => :type
:template => "ProvisioningTemplate", :override_value => 'LookupValue',
:ssh_key => 'KeyPair', :compute_resource => 'ComputeResource'}, :rename => :type
scoped_search :relation => :search_parameters, :on => :name, :complete_value => true, :rename => :parameter, :only_explicit => true
scoped_search :relation => :search_templates, :on => :name, :complete_value => true, :rename => :template, :only_explicit => true

Also available in: Unified diff