-
Notifications
You must be signed in to change notification settings - Fork 120
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
Cleanup after Ansible runner integration #594
Cleanup after Ansible runner integration #594
Conversation
Pull Request Test Coverage Report for Build 3771
💛 - Coveralls |
Pull Request Test Coverage Report for Build 3775
💛 - Coveralls |
e975089
to
c7e4092
Compare
@@ -25,7 +25,7 @@ def provider | |||
# for reconfig and retire use service | |||
# Or use the embedded_ansible_provider | |||
service = @handle.root['service_template'] || @handle.root['service'] | |||
service.try(:job_template, 'Provision').try(:manager) || embedded_ansible_provider | |||
service.try(:playbook, 'Provision').try(:manager) || embedded_ansible_provider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lfu I have come around to agreeing with you on this change after a bit more searching. The only model that supported a job_template
method that also accepts a parameter was ServiceTemplateAnsiblePlaybook
With the changes to support Runner and the related refactorings, that method was renamed to playbook
. See https://github.com/ManageIQ/manageiq/blob/master/app/models/service_template_ansible_playbook.rb#L75
I also checked the code base at the time this available_credentials.rb
script was initially created git checkout 'master@{2017-02-16}'
and see that ServiceTemplateAnsiblePlaybook
was the only model to support job_template
with a parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -2,8 +2,8 @@ | |||
|
|||
describe ManageIQ::Automate::AutomationManagement::AnsibleTower::Operations::AvailableCredentials do | |||
let(:ansible_manager) { FactoryBot.create(:automation_manager_ansible_tower) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lfu Should this now be embedded_automation_manager_ansible
or provider_embedded_ansible
?
c7e4092
to
f424d8a
Compare
Checked commit lfu@f424d8a with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Cleanup after Ansible runner integration (cherry picked from commit 61527d2) https://bugzilla.redhat.com/show_bug.cgi?id=1784103
Ivanchuk backport details:
|
Depends on ManageIQ/manageiq-automation_engine#383.
Related to ManageIQ/manageiq#19383.
https://bugzilla.redhat.com/show_bug.cgi?id=1765682
@miq-bot add_label refactoring, changelog/yes, ivanchuk/yes, hammer/no, embedded ansible, services