From d8ed18aaacb8f5a500a985d019c5cd5b1a01d415 Mon Sep 17 00:00:00 2001 From: beeva-antonioirizar Date: Mon, 15 Feb 2016 13:02:04 +0100 Subject: [PATCH] add tag () to describe_alarms_template. Because it is miss and it can't work with boto3 --- moto/cloudwatch/responses.py | 94 ++++++++++++++++++------------------ 1 file changed, 48 insertions(+), 46 deletions(-) diff --git a/moto/cloudwatch/responses.py b/moto/cloudwatch/responses.py index 064e6964..d35560ae 100644 --- a/moto/cloudwatch/responses.py +++ b/moto/cloudwatch/responses.py @@ -95,52 +95,54 @@ PUT_METRIC_ALARM_TEMPLATE = """ - - {% for alarm in alarms %} - - {{ alarm.actions_enabled }} - - {% for action in alarm.alarm_actions %} - {{ action }} - {% endfor %} - - {{ alarm.arn }} - {{ alarm.configuration_updated_timestamp }} - {{ alarm.description }} - {{ alarm.name }} - {{ alarm.comparison_operator }} - - {% for dimension in alarm.dimensions %} - - {{ dimension.name }} - {{ dimension.value }} - - {% endfor %} - - {{ alarm.evaluation_periods }} - - {% for action in alarm.insufficient_data_actions %} - {{ action }} - {% endfor %} - - {{ alarm.metric_name }} - {{ alarm.namespace }} - - {% for action in alarm.ok_actions %} - {{ action }} - {% endfor %} - - {{ alarm.period }} - {{ alarm.state_reason }} - {{ alarm.state_reason_data }} - {{ alarm.state_updated_timestamp }} - {{ alarm.state_value }} - {{ alarm.statistic }} - {{ alarm.threshold }} - {{ alarm.unit }} - - {% endfor %} - + + + {% for alarm in alarms %} + + {{ alarm.actions_enabled }} + + {% for action in alarm.alarm_actions %} + {{ action }} + {% endfor %} + + {{ alarm.arn }} + {{ alarm.configuration_updated_timestamp }} + {{ alarm.description }} + {{ alarm.name }} + {{ alarm.comparison_operator }} + + {% for dimension in alarm.dimensions %} + + {{ dimension.name }} + {{ dimension.value }} + + {% endfor %} + + {{ alarm.evaluation_periods }} + + {% for action in alarm.insufficient_data_actions %} + {{ action }} + {% endfor %} + + {{ alarm.metric_name }} + {{ alarm.namespace }} + + {% for action in alarm.ok_actions %} + {{ action }} + {% endfor %} + + {{ alarm.period }} + {{ alarm.state_reason }} + {{ alarm.state_reason_data }} + {{ alarm.state_updated_timestamp }} + {{ alarm.state_value }} + {{ alarm.statistic }} + {{ alarm.threshold }} + {{ alarm.unit }} + + {% endfor %} + + """ DELETE_METRIC_ALARMS_TEMPLATE = """