Skip to content

Commit

Permalink
Merge pull request ManageIQ#16922 from jerryk55/fix_swift_refresher_w…
Browse files Browse the repository at this point in the history
…ith_empty_containers

Make sure Containers Exist Before Processing
(cherry picked from commit 530eb07)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1542741
  • Loading branch information
roliveri authored and d-m-u committed Jun 6, 2018
1 parent dbce7dc commit 6446686
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def safe_list(&block)
end

def cleanup
@data[:cloud_object_store_containers].each { |c| c.delete(:tenant_id) }
@data[:cloud_object_store_objects].each { |c| c.delete(:tenant_id) }
@data[:cloud_object_store_containers]&.each { |c| c.delete(:tenant_id) }
@data[:cloud_object_store_objects]&.each { |c| c.delete(:tenant_id) }
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def initialize(parent_ems, data)
end

def cross_link
@data[:cloud_object_store_containers].each do |container_hash|
@data[:cloud_object_store_containers]&.each do |container_hash|
link_to_tenant(container_hash)
end

@data[:cloud_object_store_objects].each do |object_hash|
@data[:cloud_object_store_objects]&.each do |object_hash|
link_to_tenant(object_hash)
end
end
Expand Down

0 comments on commit 6446686

Please sign in to comment.