-
Notifications
You must be signed in to change notification settings - Fork 74
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
Use Ansible Workflow/Job Template Common Parent Class #557
Conversation
@nasark can you point me to where this is called from? I'd like to try to track the history to see if anything changed because it looks like this would have never worked for AnsibleTower ConfigurationWorkflows. |
Checked commit nasark@0dd2439 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
@agrare This might be a side effect of the AWX changes a while ago ManageIQ/manageiq@a230e47#diff-e77a7fcdb2c229a4e365cc4639d52f072e2108bf2a634424156853d39c05f7ec, maybe we missed |
would it be possible to add a spec for this? (or perhaps a spec for the caller of this?) |
The class hierarchy is
So, this PR is correct, even though technically it would pull in EmbeddedAutomationManager::ConfigurationScript as well. Considering this part of the code is just looking up the record, I think this is ok. Alternatively we could change the query to lookup from each of ExternalAutomationManager::ConfigurationScript and ExternalAutomationManager::ConfigurationWorkflow, but that feels overly complicated. So, I'm 👍 for this PR. |
@nasark were you able to track down that other similar failure that occurs later on after this patch was applied? |
Failure related to running this fixed in ManageIQ/manageiq-providers-awx#36 |
Backported to
|
Use Ansible Workflow/Job Template Common Parent Class (cherry picked from commit 4e555e6)
Previously Ansible AE methods were using the
::ExternalAutomationManager::ConfigurationScript
class however this is not a parent class for workflow templates::ConfigurationWorkflow
, and so the AE method would fail on the call https://github.com/ManageIQ/manageiq-automation_engine/blob/master/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_ansible_template_method.rb#L14 when using workflow templates@miq-bot assign @agrare
@miq-bot add_label bug, radjabov/yes?
@miq-bot add_reviewer @agrare