lib/topological_inventory/orchestrator/targeted_update/skip_action_rules.rb
def skip_destroy_action_of_non_last_app(target)
          if target[:action] == :destroy && target[:target] == :application
            orig_app = target[:application]
            target[:application] = nil
            load_applications

            if target[:application].present?
              log_msg_for_target(target, "Event skipped, another supported application found", :debug)
              target[:action] = :skip
            else
              target[:application] = orig_app
            end
          end
        end
# If there are more supported applications associated with Source,
# skip this 'destroy application' event
If there are more supported applications associated with Source,
skip this 'destroy application' event
If there are more supported applications associated with Source skip this ' destroy application ' event
def skip_destroy_action_of_non_last_app(target)
          if target[:action] == :destroy && target[:target] == :application
            orig_app = target[:application]
            target[:application] = nil
            load_applications
            if target[:application].present?
              log_msg_for_target(target, "Event skipped, another supported application found", :debug)
              target[:action] = :skip
            else
              target[:application] = orig_app
            end
          end
        end
def skip_destroy_action_of_non_last_app ( target ) if target [ :action ] == :destroy && target [ :target ] == :application orig_app = target [ :application ] target [ :application ] = nil load_applications if target [ :application ] . present? log_msg_for_target ( target , "Event skipped, another supported application found" , :debug ) target [ :action ] = :skip else target [ :application ] = orig_app end end end
If there are more supported applications associated with Source,
skip this 'destroy application' event
If there are more supported applications associated with Source skip this ' destroy application ' event
target