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

Add retire_now to Embedded Ansible job. #14479

Merged
merged 1 commit into from
Mar 23, 2017

Conversation

tinaafitz
Copy link
Member

Use retire_now to mark the job as retired.

Set the Ansible Playbook provisioned Services service_resources resource of type ManageIQ::Providers::EmbeddedAnsible::AutomationManager::Job to retired with retire_now.

https://www.pivotaltracker.com/story/show/141719033

@@ -2,4 +2,8 @@ class ManageIQ::Providers::EmbeddedAnsible::AutomationManager::Job < ManageIQ::P
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::Job

require_nested :Status

def retire_now(requester = nil)
finish_retirement
Copy link
Member

Choose a reason for hiding this comment

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

We should still be setting the retirement_requester as part of the retire_now logic: https://github.com/ManageIQ/manageiq/blob/master/app/models/mixins/retirement_mixin.rb#L121

@miq-bot
Copy link
Member

miq-bot commented Mar 23, 2017

Checked commit tinaafitz@47cb8b9 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🏆

@gmcculloug gmcculloug merged commit f8e892f into ManageIQ:master Mar 23, 2017
@gmcculloug gmcculloug added this to the Sprint 57 Ending Mar 27, 2017 milestone Mar 23, 2017
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