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 <huali@redhat.com>
  • Loading branch information
huali027 authored Dec 23, 2022
1 parent abd3204 commit 492335c
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
@@ -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 492335c

Please sign in to comment.