diff --git a/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb b/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb index d4fb6b622afe..7c843a56a1fe 100644 --- a/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb +++ b/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb @@ -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 diff --git a/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers/openstack.rb b/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers/openstack.rb index db3ad436d3fe..e848410c8995 100644 --- a/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers/openstack.rb +++ b/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers/openstack.rb @@ -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