Skip to content

Commit

Permalink
Merge pull request #18988 from carbonin/log_playbook_service_output
Browse files Browse the repository at this point in the history
Restore ServiceAnsiblePlaybook#postprocess method
  • Loading branch information
Fryguy authored Jul 18, 2019
2 parents 42d0d42 + 99cecd5 commit cdebe7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/service_ansible_playbook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ def job(action)
service_resources.find_by(:name => action, :resource_type => 'OrchestrationStack').try(:resource)
end

def postprocess(action)
log_stdout(action)
end

def on_error(action)
_log.info("on_error called for service action: #{action}")
update_attributes(:retirement_state => 'error') if action == "Retirement"
job(action).try(:refresh_ems)
log_stdout(action)
postprocess(action)
end

def retain_resources_on_retirement?
Expand Down

0 comments on commit cdebe7e

Please sign in to comment.