From 7540b5f6a64b5521062e01f51499ded9fca0b7b1 Mon Sep 17 00:00:00 2001 From: beeva-antonioirizar Date: Mon, 4 Apr 2016 15:27:34 +0200 Subject: [PATCH] add datetime to cloudwatch, it had in template's response but it didn't have in model and boto3 need it to work correctly --- moto/cloudwatch/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moto/cloudwatch/models.py b/moto/cloudwatch/models.py index 0d50b8b78..6b7587a94 100644 --- a/moto/cloudwatch/models.py +++ b/moto/cloudwatch/models.py @@ -1,5 +1,6 @@ from moto.core import BaseBackend import boto.ec2.cloudwatch +import datetime class Dimension(object): @@ -24,6 +25,8 @@ class FakeAlarm(object): self.ok_actions = ok_actions self.insufficient_data_actions = insufficient_data_actions self.unit = unit + self.state_updated_timestamp = datetime.datetime.now() + self.configuration_updated_timestamp = datetime.datetime.now() class MetricDatum(object):