-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add supports storage smartstate_analysis #887
Add supports storage smartstate_analysis #887
Conversation
@@ -1,3 +1,5 @@ | |||
class ManageIQ::Providers::Vmware::InfraManager::Storage < ManageIQ::Providers::InfraManager::Storage | |||
include ManageIQ::Providers::Vmware::InfraManager::EmsRefObjMixin | |||
|
|||
supports :smartstate_analysis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nasark do we need to also check storage.nil?
and https://github.com/ManageIQ/manageiq-providers-ovirt/pull/653/files#diff-24aea1f97754a89593e8311e8ea2bf2d897a159336d1f1c578d17fbb1964506dR10 here?
@nasark We're dropping the |
9d80a56
to
970b225
Compare
@miq-bot add_label quinteros/yes? |
|
||
supports :smartstate_analysis do | ||
if nil? | ||
unsupported_reason_add(:smartstate_analysis, "Storage not found") | ||
end | ||
unless storage_type_supported_for_ssa? | ||
unsupported_reason_add(:smartstate_analysis, "Smartstate Analysis unsupported for storage type %{store_type}" % {:store_type => store_type}) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to live in app/models/manageiq/providers/vmware/infra_manager/vm_or_template_shared/scanning.rb
(where storage.nil?
would make sense, just nil?
here doesn't do anything since the current object can't be nil here)
970b225
to
7bc493b
Compare
|
||
supports :smartstate_analysis do | ||
if nil? | ||
unsupported_reason_add(:smartstate_analysis, "Storage not found") | ||
elsif !storage_type_supported_for_ssa? | ||
unsupported_reason_add(:smartstate_analysis, "Smartstate Analysis unsupported for storage type %{store_type}" % {:store_type => store_type}) | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this, storage smartstate is different and the store_type shouldn't matter (plus if nil?
doesn't make sense)
7bc493b
to
573100d
Compare
Checked commit nasark@573100d with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
Backported to
|
…nalysis Add supports storage smartstate_analysis (cherry picked from commit 1c73716)
Core has been changed to use
supports_not
and since vmware is the only provider that supports storage scans this is needed here@miq-bot add_label bug
@miq-bot assign @agrare