Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check supported storage type for vm Smartstate analysis scan #653

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
agrare marked this conversation as resolved.
Show resolved Hide resolved
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