Commit e3b2116
committed
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.1 parent dc0e3ba commit e3b2116
File tree
2 files changed
+10
-2
lines changed- lib/puppet/ssl
- spec/unit/ssl
2 files changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
931 | 939 | | |
932 | 940 | | |
933 | 941 | | |
| |||
0 commit comments