Revision 0f35c707
Added by Brian Gupta about 12 years ago
- ID 0f35c70718d4438d61455119c4908b0cc14614fd
app/models/compute_resource.rb | ||
---|---|---|
require 'server_interfaces'
|
||
|
||
class ComputeResource < ActiveRecord::Base
|
||
PROVIDERS = %w[ Libvirt Ovirt EC2 Vmware ]
|
||
PROVIDERS = %w[ Libvirt Ovirt EC2 Vmware ].delete_if{|p| p == "Libvirt" && !SETTINGS[:libvirt]}
|
||
acts_as_audited :except => [:password]
|
||
|
||
# to STI avoid namespace issues when loading the class, we append Foreman::Model in our database type column
|
Also available in: Unified diff
Compute Resource menu was shown only if libvirt bindings were installed