lib/topological_inventory/orchestrator/targeted_update/skip_action_rules.rb
# If event is an application's event then only supported applications should be processed
# Unsupported applications switched to :action => :skip
#
If event is an application's event then only supported applications should be processed
Unsupported applications switched to :action => :skip
If event is an application ' s event then only supported applications should be processed Unsupported applications switched to : action = > : skip
def skip_unsupported_applications
          app_events = @targets.select { |target| target[:target] == :application }
          if app_events.present?
            app_type_ids = @api.send(:supported_application_type_ids)
            app_events.each do |target|
              app = target[:application]
              unless app_type_ids.include?(app['application_type_id'].to_s)
                log_msg_for_target(target, "skipped as unsupported app (#{app.attributes})", :debug)
                target[:action] = :skip
              end
            end
          end
        end
def skip_unsupported_applications app_events = @targets . select { | target | target [ :target ] == :application } if app_events . present? app_type_ids = @api . send ( :supported_application_type_ids ) app_events . each do | target | app = target [ :application ] unless app_type_ids . include? ( app [ 'application_type_id' ] . to_s ) log_msg_for_target ( target , "skipped as unsupported app (#{app.attributes})" , :debug ) target [ :action ] = :skip end end end end
If event is an application's event then only supported applications should be processed
Unsupported applications switched to :action => :skip
If event is an application ' s event then only supported applications should be processed Unsupported applications switched to : action = > : skip