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

Check for EMS existence before stopping event monitor #8785

Conversation

Ladas
Copy link
Contributor

@Ladas Ladas commented May 18, 2016

Check for EMS existence before stopping event monitor

Fixes BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1336859

@blomquisg blomquisg self-assigned this May 18, 2016
@@ -578,6 +578,11 @@ def stop_event_monitor
end

def stop_event_monitor_queue
unless id
Copy link
Member

@Fryguy Fryguy May 18, 2016

Choose a reason for hiding this comment

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

Prefer if new_record?, as that matches the code we have here and here as well. In fact, why are those existing checks not handling this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, I see, I don't have these checks in openstack/manager_mixin, which is overwriting those methods. Ok, let me fix that

@Ladas Ladas force-pushed the check_for_ems_existence_before_stopping_event_monitor branch from e89d0da to 4065040 Compare May 20, 2016 13:13
@miq-bot
Copy link
Member

miq-bot commented May 20, 2016

Checked commit Ladas@4065040 with ruby 2.2.3, rubocop 0.37.2, and haml-lint 0.16.1
1 file checked, 3 offenses detected

app/models/manageiq/providers/openstack/manager_mixin.rb

@blomquisg blomquisg merged commit 0f46d9c into ManageIQ:master May 25, 2016
@blomquisg blomquisg added this to the Sprint 41 Ending May 30, 2016 milestone May 25, 2016
chessbyte pushed a commit that referenced this pull request May 25, 2016
…opping_event_monitor

Check for EMS existence before stopping event monitor
(cherry picked from commit 0f46d9c)
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.

None yet

5 participants