Revision bd95cda6
Added by Dominic Cleal about 8 years ago
app/models/compute_resources/foreman/model/rackspace.rb | ||
---|---|---|
super.merge({ :ip => :public_ip_address })
|
||
end
|
||
|
||
def self.available?
|
||
Fog::Compute.providers.include?(:rackspace)
|
||
end
|
||
|
||
def self.model_name
|
||
ComputeResource.model_name
|
||
end
|
Also available in: Unified diff
fixes #14415 - check CR availability with Fog, not SETTINGS
Simplifies the code for checking compute resource availability, which
can easily be determined with the registered Fog providers instead of
being stored in SETTINGS in app initialisation. Plugins should always be
loaded, so should not need to override this class method.