Skip to content

Commit

Permalink
fix: Convert aws_token to string since sometimes it's unicode (#3643)
Browse files Browse the repository at this point in the history
Signed-off-by: Huanhuan Li <[email protected]>
(cherry picked from commit 4f03a95)
  • Loading branch information
huali027 authored and xiangce committed Dec 23, 2022
1 parent 6a82003 commit d425d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insights/specs/datasources/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def aws_imdsv2_token(broker):
try:
token = broker[LocalSpecs.aws_imdsv2_token].content[0].strip()
if token:
return token
return str(token)
except Exception as e:
raise SkipComponent("Unexpected exception:{e}".format(e=str(e)))
raise SkipComponent

0 comments on commit d425d8c

Please sign in to comment.