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

Revert train to 1.4.6, update sudo error checks #158

Merged
merged 1 commit into from
May 22, 2018

Conversation

marcparadise
Copy link
Member

@marcparadise marcparadise commented May 21, 2018

This reverts train to 1.4.6. Later versions introduce a gcp
dependency that does not cleanly pass omnibus health checks. While that
is being resolved, we'll continue to stick to 1.4.6.

We were using the Train::Error#reason field added in 1.4.12; this PR
updates error handling to do string-based matching of the messages
provided by train instead.

Signed-off-by: Marc A. Paradise marc.paradise@gmail.com

@marcparadise marcparadise requested a review from a team May 21, 2018 20:42
Copy link
Contributor

@jonsmorrow jonsmorrow left a comment

Choose a reason for hiding this comment

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

LGTM!

when :bad_sudo_password then "CHEFTRN004"
when :sudo_command_not_found then ["CHEFTRN005", sudo_command]
when :sudo_no_tty then "CHEFTRN006"
# Comments below show the original_exception.reason values ot check for instead of strings,
Copy link
Contributor

Choose a reason for hiding this comment

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

s/ot/to

This reverts train to 1.4.6.  Later versions introduce a gcp
dependency that does not cleanly pass omnibus health checks.  While that
is being resolved, we'll continue to stick to 1.4.6.

We were using the Train::Error#reason field added in 1.4.12; this PR
updates error handling to do string-based matching of the messages
provided by train instead.

Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
@marcparadise marcparadise merged commit c09fc03 into master May 22, 2018
@chef-ci chef-ci deleted the mp/revert-train-again-1.4.6 branch May 22, 2018 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants