-
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
Don't update ems attributes in refresh parser #62
Don't update ems attributes in refresh parser #62
Conversation
Send the ems api_version and uid_ems to save_ems_inventory in hashes and remove a direct ems.update_attributes call in the refresh_parser.
c329028
to
3a9a095
Compare
Checked commits agrare/manageiq-providers-vmware@15e9e52~...3a9a095 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@@ -54,14 +53,6 @@ def parse_targeted_inventory(ems, _target, inventory) | |||
hashes | |||
end | |||
|
|||
def save_inventory(ems, target, hashes) | |||
Benchmark.realtime_block(:db_save_inventory) do | |||
# TODO: really wanna kill this @ems_data instance var |
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.
@blomquisg I think this was your comment :) Finally gone
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.
Yay!
👍 |
ping @blomquisg |
Fixes VM extend retirement
Parse EMS attributes and send to save_ems_inventory instead of updating directly in the refresh_parser and finally kill the
@ems_data
variable.Depends: ManageIQ/manageiq#15252