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

Call the correct ResponseError method #9480

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

joshcooper
Copy link
Contributor

If the agent failed to download it's client cert leading to an Puppet::HTTP:ReponseError exception, then it tried to call a nonexistent message method on the Puppet::HTTP::Response.

Instead call message directly on the ResponseError, which contains the HTTP reason, e.g. Internal Server Error.

Also when renewing a client cert, explicitly call e.message instead of relying on whatever ResponseError#to_s returns.

If the agent failed to download it's client cert leading to an
Puppet::HTTP:ReponseError exception, then it tried to call a nonexistent
`message` method on the Puppet::HTTP::Response.

Instead call `message` directly on the ResponseError, which contains the HTTP
reason, e.g. Internal Server Error.

Also when renewing a client cert, explicitly call e.message instead of relying
on whatever ResponseError#to_s returns.
@joshcooper joshcooper requested a review from a team as a code owner September 10, 2024 17:05
@joshcooper joshcooper added the bug Something isn't working label Sep 10, 2024
@AriaXLi AriaXLi merged commit e82fe51 into puppetlabs:main Sep 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants