Skip to content

Commit

Permalink
Add url virtual column
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Apr 6, 2017
1 parent 337b213 commit ed755cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/models/manageiq/providers/automation_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ class ManageIQ::Providers::AutomationManager < ManageIQ::Providers::BaseManager
has_many :configuration_script_sources, :dependent => :destroy, :foreign_key => "manager_id"
has_many :configuration_script_payloads, :through => :configuration_script_sources

delegate :url, :to => :provider

virtual_column :total_configuration_profiles, :type => :integer
virtual_column :total_configured_systems, :type => :integer
virtual_column :url, :type => :string

def self.hostname_required?
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
title: Ansible Tower Providers

# Menu name
name: ConfigurationManagerForeman
name: Ansible Tower Providers

# Main DB table report is based on
db: ManageIQ::Providers::AnsibleTower::AutomationManager

# Columns to fetch from the main table
cols:
- name
- url
- type
- last_refresh_date
- region_description
Expand All @@ -31,7 +32,7 @@ include:
zone:
columns:
- name
provider:
endpoints:
columns:
- url

Expand All @@ -41,7 +42,7 @@ include_for_find:
# Order of columns (from all tables)
col_order:
- name
- provider.url
- url
- type
- zone.name
- last_refresh_date
Expand Down

0 comments on commit ed755cf

Please sign in to comment.