From 492335ca3b36c8ca2175f7f8203de572f1bdbb3e Mon Sep 17 00:00:00 2001 From: huali027 <44796653+huali027@users.noreply.github.com> Date: Fri, 23 Dec 2022 17:09:53 +0800 Subject: [PATCH] fix: Convert aws_token to string since sometimes it's unicode (#3643) Signed-off-by: Huanhuan Li --- insights/specs/datasources/aws.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/insights/specs/datasources/aws.py b/insights/specs/datasources/aws.py index 2e32aec58..d4a001d4b 100644 --- a/insights/specs/datasources/aws.py +++ b/insights/specs/datasources/aws.py @@ -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