heat engine : Return timestamps formatted by heat_utils.strtime

Fix remaining timestamps which are not formatted via heat_utils.strtime
This allows event timestamps to be correctly parsed by boto.
ref #125

Change-Id: I62c3bdcdcfd8e1d51e6c3f2566eb1568e60097d2
Signed-off-by: Steven Hardy <shardy@redhat.com>
This commit is contained in:
Steven Hardy 2012-06-25 17:42:15 +01:00
parent ab3701968c
commit 9a800aca5b
1 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ class EngineManager(manager.Manager):
return {'EventId': event.id,
'StackId': event.stack_id,
'StackName': s.name,
'Timestamp': str(event.created_at),
'Timestamp': heat_utils.strtime(event.created_at),
'LogicalResourceId': event.logical_resource_id,
'PhysicalResourceId': event.physical_resource_id,
'ResourceType': event.resource_type,
@ -534,7 +534,7 @@ def format_resource_attributes(stack, resource):
'LogicalResourceId': resource.name,
'PhysicalResourceId': resource.nova_instance or '',
'ResourceType': resource_type,
'LastUpdatedTimestamp': last_updated_time.isoformat(),
'LastUpdatedTimestamp': heat_utils.strtime(last_updated_time),
'ResourceStatus': resource.state,
'ResourceStatusReason': resource.state_description,
}