Revision be3a9aba
Added by Amir Fefer over 8 years ago
app/models/compute_resources/foreman/model/rackspace.rb | ||
---|---|---|
super and flavors
|
||
rescue Excon::Errors::Unauthorized => e
|
||
errors[:base] << e.response.body
|
||
rescue Fog::Compute::Rackspace::Error => e
|
||
rescue Fog::Compute::Rackspace::Error, Excon::Errors::SocketError=> e
|
||
errors[:base] << e.message
|
||
end
|
||
|
Also available in: Unified diff
Fixes #12102 - Adds socket errors catching to rackspace test connection
Without that, the user doesn't get feedback about problems in the connection to the racksapce service, such as invalid server address.