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

disconnect flag not respected in link_ems_inventory #16618

Merged
merged 1 commit into from
Dec 12, 2017

Conversation

pkliczewski
Copy link
Contributor

When new vm is created we use save_ems_inventory_no_disconnect where
we set disconnect flag to false. It was not respected for all
operations.

Bug-Url:
https://bugzilla.redhat.com/1518739

@pkliczewski
Copy link
Contributor Author

@miq-bot assign @agrare

@pkliczewski
Copy link
Contributor Author

@pkliczewski
Copy link
Contributor Author

@borod108 please review

ems.remove_all_children
else
elsif !root_id.nil?
Copy link
Member

Choose a reason for hiding this comment

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

How about just ems.remove_all_children if disconnect so we can leave the if/else conditions the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@agrare
Copy link
Member

agrare commented Dec 8, 2017

@pkliczewski can you add a test to catch this case?

@pkliczewski
Copy link
Contributor Author

@agrare sure, will add a test

@agrare
Copy link
Member

agrare commented Dec 8, 2017

Thanks!

When new vm is created we use `save_ems_inventory_no_disconnect` where
we set disconnect flag to `false`. It was not respected for all
operations.

Bug-Url:
https://bugzilla.redhat.com/1518739
@miq-bot
Copy link
Member

miq-bot commented Dec 12, 2017

Checked commit pkliczewski@89b617d with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 1 offense detected

app/models/ems_refresh/link_inventory.rb

@agrare agrare merged commit c2fb020 into ManageIQ:master Dec 12, 2017
@agrare agrare added this to the Sprint 76 Ending Jan 1, 2018 milestone Dec 12, 2017
simaishi pushed a commit that referenced this pull request Dec 14, 2017
disconnect flag not respected in link_ems_inventory
(cherry picked from commit c2fb020)

https://bugzilla.redhat.com/show_bug.cgi?id=1526042
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit da9379c28b15bda333e9a9938ab34e776f70e8d6
Author: Adam Grare <agrare@redhat.com>
Date:   Tue Dec 12 16:19:29 2017 -0500

    Merge pull request #16618 from pkliczewski/disconnect_removal
    
    disconnect flag not respected in link_ems_inventory
    (cherry picked from commit c2fb020f100f583df356d59e8ef6abb55689ac54)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1526042

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.

4 participants