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

Don't update ems attributes in refresh parser #62

Merged
merged 2 commits into from
Jul 27, 2017

Conversation

agrare
Copy link
Member

@agrare agrare commented May 30, 2017

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

@agrare agrare added the wip label May 30, 2017
@agrare agrare changed the title [WIP] Don't update ems attributes in refresh parser Don't update ems attributes in refresh parser Jun 28, 2017
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.
@agrare agrare force-pushed the dont_update_ems_in_refresh_parser branch from c329028 to 3a9a095 Compare June 28, 2017 19:24
@miq-bot miq-bot removed the wip label Jun 28, 2017
@miq-bot
Copy link
Member

miq-bot commented Jun 28, 2017

Checked commits agrare/manageiq-providers-vmware@15e9e52~...3a9a095 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 files checked, 0 offenses detected
Everything looks fine. 🏆

@@ -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
Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

@blomquisg
Copy link
Member

👍

@agrare
Copy link
Member Author

agrare commented Jul 6, 2017

ping @blomquisg

@blomquisg blomquisg merged commit a5784c5 into ManageIQ:master Jul 27, 2017
@blomquisg blomquisg added this to the Sprint 66 Ending Aug 7, 2017 milestone Jul 27, 2017
@agrare agrare deleted the dont_update_ems_in_refresh_parser branch July 27, 2017 16:43
agrare pushed a commit to agrare/manageiq-providers-vmware that referenced this pull request Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants