From 48304f81b18fbe75f306c90068796ef5653fddfe Mon Sep 17 00:00:00 2001 From: zscholl Date: Fri, 24 Apr 2020 13:16:13 -0500 Subject: [PATCH] fix last_used template --- moto/iam/responses.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moto/iam/responses.py b/moto/iam/responses.py index 947cccf3..086ba508 100644 --- a/moto/iam/responses.py +++ b/moto/iam/responses.py @@ -1779,12 +1779,12 @@ GET_ACCESS_KEY_LAST_USED_TEMPLATE = """ {{ user_name }} - {{% if last_used % }} + {% if last_used is defined %} {{ last_used }} - {{% else % }} + {% else %} N/A N/A - {{% endif %}} + {% endif %}