Commit 6f4e98a
authored
fix(cli): fails to load credentials if both containerToken and containerTokenFile are set (#829)
If both `$AWS_CONTAINER_AUTHORIZATION_TOKEN` and
`$AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE` are set, the SDK wants to emit
a warning.
Because of the way it calls the `logger.warn()` function, the reference
to `this` is lost and we try to look up a member on `undefined` which
then fails and no credentials are loaded at all.
Reported as an upstream bug to SDKv3, but in order to expedite the fix
we also guard against it ourselvses by locally binding `this` before we
pass our logger object to the SDK.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license1 parent aec389c commit 6f4e98a
1 file changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | | - | |
584 | 582 | | |
585 | 583 | | |
586 | 584 | | |
| |||
618 | 616 | | |
619 | 617 | | |
620 | 618 | | |
621 | | - | |
| 619 | + | |
622 | 620 | | |
623 | | - | |
624 | 621 | | |
625 | 622 | | |
626 | 623 | | |
| |||
1075 | 1072 | | |
1076 | 1073 | | |
1077 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
0 commit comments