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