Skip to content

Commit

Permalink
check supported storage type for vm scan
Browse files Browse the repository at this point in the history
  • Loading branch information
nasark committed Dec 20, 2023
1 parent 1d91f63 commit de24b04
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ module ManageIQ::Providers::Ovirt::InfraManager::VmOrTemplateShared::Scanning
unless feature_supported
unsupported_reason_add(:smartstate_analysis, reason)
end
if storage.nil?
unsupported_reason_add(:smartstate_analysis, "Vm is not located on a storage")
elsif !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

Expand Down

0 comments on commit de24b04

Please sign in to comment.