Skip to content

Commit

Permalink
Merge pull request #16922 from jerryk55/fix_swift_refresher_with_empt…
Browse files Browse the repository at this point in the history
…y_containers

Make sure Containers Exist Before Processing
  • Loading branch information
roliveri authored Feb 6, 2018
2 parents 3368bf7 + 0579193 commit 530eb07
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 530eb07

Please sign in to comment.