Revision 1d9828b0
Added by Joseph Magen almost 11 years ago
- ID 1d9828b0a2c6b0e370ac6c63e11cb006e59f1034
app/services/foreman/provision/ssh.rb | ||
---|---|---|
require 'fog'
|
||
begin
|
||
require 'fog'
|
||
rescue LoadError
|
||
Rails.logger.info "Fog is not installed - unable to manage compute resources"
|
||
rescue => exception
|
||
Rails.logger.warn "Fog initialization failed - #{exception}"
|
||
Rails.logger.debug exception.backtrace.join("\n")
|
||
end
|
||
require 'timeout'
|
||
|
||
class Foreman::Provision::SSH
|
Also available in: Unified diff
fixes #2813 - move Foreman::Provision::SSH files back to /lib so it does not fail on startup for non-fog installations