-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call the correct ResponseError method
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.
- Loading branch information
1 parent
dc0e3ba
commit e3b2116
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters