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

don't call postprocess without job in playbook on_error #20773

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Nov 2, 2020

playbook postprocessing shouldn't happen if the job is nil in on_error

since having a nil job is a potential outcome of the valid scenarios we're trying to handle with the retry of ansible playbook connection stuff (see the related pr), we also need to handle this logic branch

related to the work done on #20738

@d-m-u
Copy link
Contributor Author

d-m-u commented Nov 2, 2020

@tinaafitz please review

@miq-bot
Copy link
Member

miq-bot commented Nov 2, 2020

Checked commit d-m-u@574fcd9 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍪

Copy link
Member

@tinaafitz tinaafitz left a comment

Choose a reason for hiding this comment

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

Thanks @d-m-u.

@tinaafitz
Copy link
Member

@djberg96 Please review.

Copy link
Contributor

@djberg96 djberg96 left a comment

Choose a reason for hiding this comment

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

LGTM

@kbrock kbrock merged commit 19f3728 into ManageIQ:master Nov 4, 2020
@d-m-u d-m-u deleted the no_postprocess_without_job branch November 4, 2020 16:40
@simaishi
Copy link
Contributor

simaishi commented Nov 9, 2020

@d-m-u Can this be ivanchuk/yes (which implies jansa/yes and kasparov/yes)?

@d-m-u
Copy link
Contributor Author

d-m-u commented Nov 9, 2020

@miq-bot add_label ivanchuk/yes

simaishi pushed a commit that referenced this pull request Nov 9, 2020
don't call postprocess without job in playbook on_error

(cherry picked from commit 19f3728)

https://bugzilla.redhat.com/show_bug.cgi?id=1835226
@simaishi
Copy link
Contributor

simaishi commented Nov 9, 2020

Ivanchuk backport details:

$ git log -1
commit 558a27fd00b895eea52138ae57dfc6c39b769fd0
Author: Keenan Brock <keenan@thebrocks.net>
Date:   Wed Nov 4 11:37:35 2020 -0500

    Merge pull request #20773 from d-m-u/no_postprocess_without_job

    don't call postprocess without job in playbook on_error

    (cherry picked from commit 19f3728f682f98cf77237c0828ec96998516cc46)

    https://bugzilla.redhat.com/show_bug.cgi?id=1835226

simaishi pushed a commit that referenced this pull request Nov 9, 2020
don't call postprocess without job in playbook on_error

(cherry picked from commit 19f3728)
@simaishi
Copy link
Contributor

simaishi commented Nov 9, 2020

Jansa backport details:

$ git log -1
commit a5c362e3c832fa5c818ddeb595a4f30f722eeeca
Author: Keenan Brock <keenan@thebrocks.net>
Date:   Wed Nov 4 11:37:35 2020 -0500

    Merge pull request #20773 from d-m-u/no_postprocess_without_job

    don't call postprocess without job in playbook on_error

    (cherry picked from commit 19f3728f682f98cf77237c0828ec96998516cc46)

simaishi pushed a commit that referenced this pull request Nov 9, 2020
don't call postprocess without job in playbook on_error

(cherry picked from commit 19f3728)
@simaishi
Copy link
Contributor

simaishi commented Nov 9, 2020

Kasparov backport details:

$ git log -1
commit 2e36bba2da9ae4aac5cb52692cfabff624691b7d
Author: Keenan Brock <keenan@thebrocks.net>
Date:   Wed Nov 4 11:37:35 2020 -0500

    Merge pull request #20773 from d-m-u/no_postprocess_without_job

    don't call postprocess without job in playbook on_error

    (cherry picked from commit 19f3728f682f98cf77237c0828ec96998516cc46)

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.

6 participants