Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 077fd25

Browse files
committed
fix: correct header initialization to avoid TypeError
1 parent 008685c commit 077fd25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google/auth/aws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def _get_metadata_security_credentials(
532532
"""
533533
headers = None
534534
if imdsv2_session_token is not None:
535-
headers["X-aws-ec2-metadata-token"] = imdsv2_session_token
535+
headers = {"X-aws-ec2-metadata-token": imdsv2_session_token}
536536

537537
response = request(
538538
url="{}/{}".format(self._security_credentials_url, role_name),

0 commit comments

Comments
 (0)