-
Notifications
You must be signed in to change notification settings - Fork 897
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
target new refresh fails #16043
target new refresh fails #16043
Conversation
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.
Great catch
@@ -26,7 +26,7 @@ def link_ems_inventory(ems, target, prev_relats, new_relats) | |||
do_disconnect = target.kind_of?(ExtManagementSystem) | |||
|
|||
# Do the Folders to Folders relationships | |||
update_relats(:folders_to_folders, prev_relats, new_relats) do |f| | |||
update_relats(:folders_to_folders, prev_relats, new_relats, disconnect) do |f| |
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.
Could we just change this to set do_disconnect if disconnect is false?
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 will check
When running publish vm workflow flow I saw: [NoMethodError]: undefined method `base_class' for NilClass:Class Method:[block in method_missing] relationship_mixin.rb:621:in `block in remove_children' and it is triggered from `save_ems_inventory_no_disconnect`. It means that `link_invenotry` do not respects disconnect flag which is fixed by this patch.
Checked commit pkliczewski@d1ff546 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Verified on 'publish vm' which used to fail prior to this patch on.
After:
|
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.
LGTM great catch @pkliczewski
When running publish vm workflow flow I saw:
[NoMethodError]: undefined method
base_class' for NilClass:Class Method:[block in method_missing] relationship_mixin.rb:621:in
block in remove_children'and it is triggered from
save_ems_inventory_no_disconnect
. It means thatlink_invenotry
do notrespects disconnect flag which is fixed by this patch.