-
Notifications
You must be signed in to change notification settings - Fork 898
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
New provider event parsing #14399
New provider event parsing #14399
Conversation
@@ -0,0 +1,3 @@ | |||
module ManageIQ::Providers::Redhat::InfraManager::OvirtServices | |||
require_nested :OvirtServices |
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.
There is an issue with this line. We do not have OvirtServices in OvirtServices directory.
We should have here:
require_nested :Builder
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.
right, thank you!
b185ded
to
6d79889
Compare
6d79889
to
1f55add
Compare
6d79889
to
5f98c41
Compare
ad527f0
to
a05d568
Compare
@durandom Fixed tests and rubocops. |
@miq-bot add_label fine/yes |
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.
besides some small nitpicks 👍
@borod108 if you want to address the comments, you can also squash the commits into one?
Then give your go, if you want me to ping blomquisg for merging
@@ -111,6 +111,11 @@ def rhevm_inventory | |||
@rhevm_inventory ||= connect(:service => "Inventory") | |||
end | |||
|
|||
def ovirt_services | |||
ManageIQ::Providers::Redhat::InfraManager::OvirtServices::Builder.new(self) |
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.
does it make sense to memoize this?
@ovirt_services ||= begin
ManageIQ::Providers::Redhat::InfraManager::OvirtServices::Builder.new(self).build.new(:ems => self)
end
end | ||
|
||
def username_by_href(href) | ||
username = nil |
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.
username is unnecessary
end | ||
|
||
def username_by_href(href) | ||
username = nil |
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.
same here, username is uneccessary
Add parsing events with OvirtSDK, this respects the setting use_ovirt_engine_sdk and will use only Ovirt gem if it is set to false.
a05d568
to
c589205
Compare
Some comments on commit borod108@c589205 spec/models/manageiq/providers/redhat/infra_manager/event_parser_spec.rb
|
Checked commit borod108@c589205 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/models/manageiq/providers/redhat/infra_manager/ovirt_services/strategies/v3.rb
|
@durandom all changes are done. |
@miq-bot assign @blomquisg @blomquisg please merge |
New provider event parsing (cherry picked from commit ebcb31c)
Fine backport details:
|
Add parsing events with OvirtSDK, this respects the setting use_ovirt_engine_sdk and will use only Ovirt gem if it is set to false.
This PR is base on: #14398
@pkliczewski @masayag please review