summaryrefslogtreecommitdiff
path: root/boto/cloudformation
diff options
context:
space:
mode:
authorNate <nate@knewton.com>2013-08-13 12:03:13 -0400
committerDaniel Lindsley <daniel@toastdriven.com>2013-08-14 16:05:13 -0700
commit70f363abfa01f082137340f65b47dc69451ab182 (patch)
tree9705c7fd457c85f6f1b068107d763a2fab45b9e2 /boto/cloudformation
parent8c20fb9b8bdd127332c2156ccf3e30a6334ce414 (diff)
downloadboto-70f363abfa01f082137340f65b47dc69451ab182.tar.gz
Bugfix: s/LastUpdatedTimestamp/LastUpdatedTime
The cloudformation api is returning xml that does not have LastUpdatedTimestamp elements, but rather LastUpdatedTime elements. Here is an example: <ListStacksResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/"> <ListStacksResult> <StackSummaries> ...snip <member> <StackId>STACKY_DOO_DAH</StackId> <StackStatus>UPDATE_COMPLETE</StackStatus> ==> <LastUpdatedTime>2013-08-09T18:58:22Z</LastUpdatedTime> <StackName>StackyDooDah</StackName> <CreationTime>2013-08-09T15:18:49Z</CreationTime> <TemplateDescription>juggernauts</TemplateDescription> <StackStatusReason/> </member> This commit fixes this and adjusts a couple of tests accordingly.
Diffstat (limited to 'boto/cloudformation')
-rwxr-xr-x[-rw-r--r--]boto/cloudformation/stack.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/boto/cloudformation/stack.py b/boto/cloudformation/stack.py
index 2ee78022..c173de66 100644..100755
--- a/boto/cloudformation/stack.py
+++ b/boto/cloudformation/stack.py
@@ -295,7 +295,7 @@ class StackResource(object):
class StackResourceSummary(object):
def __init__(self, connection=None):
self.connection = connection
- self.last_updated_timestamp = None
+ self.last_updated_time = None
self.logical_resource_id = None
self.physical_resource_id = None
self.resource_status = None
@@ -306,14 +306,14 @@ class StackResourceSummary(object):
return None
def endElement(self, name, value, connection):
- if name == "LastUpdatedTimestamp":
+ if name == "LastUpdatedTime":
try:
- self.last_updated_timestamp = datetime.strptime(
+ self.last_updated_time = datetime.strptime(
value,
'%Y-%m-%dT%H:%M:%SZ'
)
except ValueError:
- self.last_updated_timestamp = datetime.strptime(
+ self.last_updated_time = datetime.strptime(
value,
'%Y-%m-%dT%H:%M:%S.%fZ'
)