Skip to content

Commit

Permalink
Added a named_scope to exclude Ansible records
Browse files Browse the repository at this point in the history
Added named_scope to exclude Ansible records on Configured Systems under Configuration. Ansible Configured systems are being displayed on Automation Manager explorer
  • Loading branch information
h-kataria committed Apr 19, 2020
1 parent 0c33773 commit 924044c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/configured_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class ConfiguredSystem < ApplicationRecord
scope :with_manager, ->(manager_id) { where(:manager_id => manager_id) }
scope :with_configuration_profile_id, ->(profile_id) { where(:configuration_profile_id => profile_id) }
scope :without_configuration_profile_id, -> { where(:configuration_profile_id => nil) }
scope :not_ansible, -> { where.not(:type => ["ManageIQ::Providers::EmbeddedAnsible::AutomationManager::ConfiguredSystem",
"ManageIQ::Providers::AnsibleTower::AutomationManager::ConfiguredSystem"]) }

def configuration_architecture
tag_hash[ConfigurationArchitecture]
Expand Down

0 comments on commit 924044c

Please sign in to comment.