-
Notifications
You must be signed in to change notification settings - Fork 70
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
Fix HostStorages being deleted by host targeted refresh #421
Conversation
fcb729a
to
89a852a
Compare
89a852a
to
e488dd7
Compare
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 see, the parent_inventory_collection was automatically inferred as :hosts (because the host_storages relations is :through => :hosts
). Looks good. 👍
@agrare looks like the test is not passing though, the count is wrong |
e488dd7
to
24f9942
Compare
Checked commits agrare/manageiq-providers-vmware@55d201a~...24f9942 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Ah yeah I pushed a test for host_switches too soon, similar issue but dont' have a fix for that one yet |
@Ladas there we go PTAL |
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.
👍 awesome
cc @simaishi |
Fix HostStorages being deleted by host targeted refresh (cherry picked from commit 349b469)
Ivanchuk backport details:
|
A host targeted refresh was deleting related host_storages because the host_storages are actually refreshed by the storage target.