From 0540f501aeb8d687b739a48dff14ae92eb902db8 Mon Sep 17 00:00:00 2001 From: nasark Date: Wed, 11 Oct 2023 15:29:41 -0400 Subject: [PATCH] check supported storage type for vm scan --- .../ovirt/infra_manager/vm_or_template_shared/scanning.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/manageiq/providers/ovirt/infra_manager/vm_or_template_shared/scanning.rb b/app/models/manageiq/providers/ovirt/infra_manager/vm_or_template_shared/scanning.rb index 985b0db1..6a10cb66 100644 --- a/app/models/manageiq/providers/ovirt/infra_manager/vm_or_template_shared/scanning.rb +++ b/app/models/manageiq/providers/ovirt/infra_manager/vm_or_template_shared/scanning.rb @@ -7,6 +7,9 @@ module ManageIQ::Providers::Ovirt::InfraManager::VmOrTemplateShared::Scanning unless feature_supported unsupported_reason_add(:smartstate_analysis, reason) end + unless storage.storage_type_supported_for_ssa? + unsupported_reason_add(:smartstate_analysis, "Smartstate Analysis unsupported for storage type %{store_type}" % {:store_type => storage.store_type}) + end end end