diff --git a/app/models/manageiq/providers/storage_manager/cinder_manager/refresh_parser/cross_linkers.rb b/app/models/manageiq/providers/storage_manager/cinder_manager/refresh_parser/cross_linkers.rb index 7003bc745af..5150978c188 100644 --- a/app/models/manageiq/providers/storage_manager/cinder_manager/refresh_parser/cross_linkers.rb +++ b/app/models/manageiq/providers/storage_manager/cinder_manager/refresh_parser/cross_linkers.rb @@ -5,6 +5,10 @@ def self.cross_link(ems, data) _log.warn "Manager does not have a parent." return end + unless data + _log.warn "Manager does not have volumes, snapshots, or volume backups." + return + end parent_type = parent_manager.class.ems_type _log.debug "Parent type: #{parent_type}" diff --git a/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers.rb b/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers.rb index 5863f2daa90..103d4362bc6 100644 --- a/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers.rb +++ b/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser/cross_linkers.rb @@ -5,6 +5,10 @@ def self.cross_link(ems, data) _log.warn "Manager does not have a parent." return end + unless data + _log.warn "Manager does not have any object storage." + return + end parent_type = parent_manager.class.ems_type _log.debug "Parent type: #{parent_type}"