Revision a08af7d8
Added by Ohad Levy almost 12 years ago
- ID a08af7d82e45d3871d93ca5daa4f4975ead92d4c
app/models/compute_resource.rb | ||
---|---|---|
end
|
||
|
||
def provider_friendly_name
|
||
%w[ Libvirt oVirt EC2 VMWare ][PROVIDERS.index(provider)]
|
||
list = SETTINGS[:libvirt] ? ["Libvirt"] : []
|
||
list += %w[ oVirt EC2 VMWare ]
|
||
list[PROVIDERS.index(provider)]
|
||
end
|
||
|
||
# returns a new fog server instance
|
Also available in: Unified diff
when libvirt is not enabled, compute resource provider name is incorrect.