Project

General

Profile

Actions

Refactor #14415

closed

Replace use of SETTINGS to check compute resource availability

Added by Dominic Cleal over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

config/application.rb uses the global SETTINGS variable to store a list of compute resource bundler groups that are loaded, which is used later in ComputeResource to list available providers. The initialiser tries to load Bundler groups, then stores a per-provider "setting" based on whether the Fog provider is registered.

The listing of available providers in ComputeResource can be refactored to check the Fog::Compute.providers registration and remove this data from the settings hash.

(As discussed in https://github.com/theforeman/foreman/pull/3377#discussion-diff-57880045)

Actions

Also available in: Atom PDF