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

Modify MiqAction so that queue_name is set for ems operations #19652

Merged
merged 4 commits into from
Dec 19, 2019
Merged

Modify MiqAction so that queue_name is set for ems operations #19652

merged 4 commits into from
Dec 19, 2019

Conversation

djberg96
Copy link
Contributor

@djberg96 djberg96 commented Dec 17, 2019

This PR modifies the private method invoke_or_queue so that it will set the queue_name whenever the role is an ems operation.

The name is set using the target's queue name for ems operations, or "generic" if that's not possible. In most cases the target and the rec are the same for ems operations. Only action_vm_retire actually has a different target and would have to default as far as I could tell.

I updated the specs a bit to include one of the other operations besides action_vm_retire as well.

Part of #19543

Cross-repo tests at ManageIQ/manageiq-cross_repo-tests#41

@miq-bot
Copy link
Member

miq-bot commented Dec 17, 2019

Checked commits https://github.com/djberg96/manageiq/compare/96e03789abf6dfae907cd695ead8afcf377c92cf~...a75842b8c65cb41b628141554c3aece68c3921af with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@djberg96
Copy link
Contributor Author

@miq-bot add_reviewer @agrare

@miq-bot miq-bot requested a review from agrare December 18, 2019 13:49
@agrare agrare self-assigned this Dec 19, 2019
Copy link
Member

@kbrock kbrock left a comment

Choose a reason for hiding this comment

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

Darn. Wish we didn’t have everyone caring about role, queue name, and zone

Copy link
Member

@agrare agrare left a comment

Choose a reason for hiding this comment

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

Looks like the best we can do for now

@agrare agrare merged commit a9e6536 into ManageIQ:master Dec 19, 2019
@agrare agrare added this to the Sprint 127 Ending Jan 6, 2020 milestone Dec 19, 2019
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