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

Fix EmsRefresh miq_callback when merging queue items #14441

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented Mar 21, 2017

When merging an EmsRefresh queue item the class_name in the miq_callback was getting set to NilClass causing the callback to fail and the task to never get marked as finished.

The miq_callback[:class_name] was set with task.class.name, but the task variable was only valid when creating a task. If we were reusing an existing task then task was nil.

When merging an EmsRefresh queue item the class_name in the miq_callback
was getting set to NilClass causing the callback to fail and the task to
never get marked as finished
@miq-bot
Copy link
Member

miq-bot commented Mar 21, 2017

Checked commit agrare@ca60048 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🍪

Copy link
Member

@isimluk isimluk left a comment

Choose a reason for hiding this comment

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

👍

@isimluk isimluk self-assigned this Mar 22, 2017
@isimluk isimluk added this to the Sprint 57 Ending Mar 27, 2017 milestone Mar 22, 2017
@isimluk isimluk merged commit b47833a into ManageIQ:master Mar 22, 2017
@agrare agrare deleted the fix_ems_refresh_queue_callback_class_name branch March 22, 2017 12:22
@agrare
Copy link
Member Author

agrare commented Mar 22, 2017

Thanks @isimluk !

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.

3 participants