Skip to content

Commit

Permalink
Merge pull request #280 from mansam/handled-list-catch-fog-not-found
Browse files Browse the repository at this point in the history
Catch Fog::Errors::NotFound in OpenstackHandle.handled_list
(cherry picked from commit a95440e)

https://bugzilla.redhat.com/show_bug.cgi?id=1572760
  • Loading branch information
Ladas authored and simaishi committed Apr 27, 2018
1 parent 6e68c40 commit c3afd13
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,7 +35,7 @@ def handled_list(collection_type, options = {}, all_tenants = nil)
"type: #{collection_type}, in provider: #{@os_handle.address}. Message=#{err.message}"
_log.warn err.backtrace.join("\n")
[]
rescue Excon::Errors::NotFound => err
rescue Excon::Errors::NotFound, Fog::Errors::NotFound => err
# It can happen that some data do not exist anymore, in that case log warning but continue refresh
_log.warn "Data not found in project: #{@os_handle.project_name}, for collection type: #{collection_type}, "\
"in provider: #{@os_handle.address}. Message=#{err.message}"
Expand Down

0 comments on commit c3afd13

Please sign in to comment.