Skip to content

Commit

Permalink
Removed Configuration Management explorer related files & code.
Browse files Browse the repository at this point in the history
- Updated/removed any references to provider_foreman explorer.
  • Loading branch information
h-kataria committed Apr 15, 2020
1 parent 126a2be commit dd14060
Show file tree
Hide file tree
Showing 38 changed files with 7 additions and 1,552 deletions.
8 changes: 0 additions & 8 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,6 @@ def report_data
@view.table = filter_parent_name_tenant(@view.table)
end

# Foreman has some unassigned rows which needs to be added after view is fetched
if options && options[:unassigned_profile_row] && options[:unassigned_configuration_profile]
options[:unassigned_profile_row][:id] ||= options[:unassigned_profile_row]['manager_id']
@view.table.data.push(options[:unassigned_profile_row])
@targets_hash[options[:unassigned_profile_row]['id']] = options[:unassigned_configuration_profile]
end
render :json => {
:settings => settings,
:data => view_to_hash(@view, true),
Expand Down Expand Up @@ -1990,8 +1984,6 @@ def controller_for_common_methods
"vm"
when 'automation_manager'
"automation_manager_provider"
when 'provider_foreman'
"configuration_manager_provider"
when "generic_object_definition" # tagging for nested list on the generic object class
"generic_object"
when "ansible_playbook"
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/application_controller/ci_processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def manager_button_operation(method, display_name)
def process_managers(managers, task)
controller_class = request.parameters[:controller]
provider_class = case controller_class
when 'configuration_manager', 'provider_foreman' then ManageIQ::Providers::ConfigurationManager
when 'configuration_manager' then ManageIQ::Providers::ConfigurationManager
when 'automation_manager' then ManageIQ::Providers::AutomationManager
end

Expand Down
3 changes: 1 addition & 2 deletions app/controllers/application_controller/explorer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ def x_history
'start' => :s1, 'stop' => :s1, 'suspend' => :s1,
'reset' => :s1, 'terminate' => :s1, 'pause' => :s1,
'shelve' => :s1, 'shelve_offload' => :s1, 'chargeback' => :s1,
'foreman_pause' => :s1, 'foreman_resume' => :s1, 'manager_pause' => :s1,
'manager_resume' => :s1,
'manager_pause' => :s1, 'manager_resume' => :s1,

# group 2
'clone' => :s2, 'compare' => :s2, 'drift' => :s2,
Expand Down
4 changes: 0 additions & 4 deletions app/controllers/configuration_profile_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ class ConfigurationProfileController < ApplicationController
after_action :cleanup_action
after_action :set_session_data

def self.model
ManageIQ::Providers::Foreman::ConfigurationManager::ConfigurationProfile
end

def self.table_name
@table_name ||= "configuration_profile"
end
Expand Down
4 changes: 0 additions & 4 deletions app/controllers/configured_system_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ class ConfiguredSystemController < ApplicationController
after_action :cleanup_action
after_action :set_session_data

def self.model
ManageIQ::Providers::Foreman::ConfigurationManager::ConfiguredSystem
end

def self.table_name
@table_name ||= "configured_system"
end
Expand Down
Loading

0 comments on commit dd14060

Please sign in to comment.