-
Notifications
You must be signed in to change notification settings - Fork 92
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
Filter out resources with blank physical_resource_id #113
Filter out resources with blank physical_resource_id #113
Conversation
8fe9503
to
4b18799
Compare
@@ -173,6 +173,8 @@ def orchestration_stack_resources(stack, stack_inventory_object) | |||
raw_resources.reject! { |r| r.physical_resource_id.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.
There's already a check on this line for nil, just like in the old refresher. I'm guessing it should be changed to a check for blank?
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.
hum, you might be right
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.
yeah, the build method checks blank? https://github.com/Ladas/manageiq/blob/17c884ab58ea6e7f0aad11dd87982adf24409c17/app/models/manager_refresh/inventory_collection.rb#L754
26b632b
to
258732c
Compare
Filter out resources with no physical_resource_id. Before we were ignoring those with: https://github.com/Ladas/manageiq-providers-openstack/blob/d0799c4a5766650f2d3d149875c1b58f8a16040f/app/models/manageiq/providers/openstack/refresh_parser_common/orchestration_stacks.rb#L165 Without ignoring thise results in error : [NoMethodError]: undefined method `ems_ref=' for nil:NilClass Method:[block in method_missing]
258732c
to
b89f7ab
Compare
Checked commit Ladas@b89f7ab with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
💯 🚀 LGTM |
This should fix https://bugzilla.redhat.com/show_bug.cgi?id=1500314 |
Filter out resources with blank physical_resource_id.
Before we were ignoring those with:
https://github.com/Ladas/manageiq-providers-openstack/blob/d0799c4a5766650f2d3d149875c1b58f8a16040f/app/models/manageiq/providers/openstack/refresh_parser_common/orchestration_stacks.rb#L165
Without ignoring thise results in error :
[NoMethodError]: undefined method `ems_ref=' for nil:NilClass Method:[block in method_missing]