From 8959643e5666872bda234efc1c3c94244a5183c4 Mon Sep 17 00:00:00 2001 From: Dan W Anderson Date: Thu, 18 Jan 2018 15:58:11 -0800 Subject: [PATCH] return redrivepolicy attribute as string --- moto/sqs/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moto/sqs/models.py b/moto/sqs/models.py index dbc170387..0a268e9eb 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -286,6 +286,8 @@ class Queue(BaseModel): attr = getattr(self, camelcase_to_underscores(attribute)) if isinstance(attr, bool): attr = str(attr).lower() + elif attribute == 'RedrivePolicy': + attr = json.dumps(attr) result[attribute] = attr return result