Use ISO 8601 format for ELB DescribeLoadBalancers
This commit is contained in:
parent
bdeeeb701a
commit
891801d569
@ -1,6 +1,9 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
|
import pytz
|
||||||
|
|
||||||
from boto.ec2.elb.attributes import (
|
from boto.ec2.elb.attributes import (
|
||||||
LbAttributes,
|
LbAttributes,
|
||||||
ConnectionSettingAttribute,
|
ConnectionSettingAttribute,
|
||||||
@ -83,7 +86,7 @@ class FakeLoadBalancer(BaseModel):
|
|||||||
self.zones = zones
|
self.zones = zones
|
||||||
self.listeners = []
|
self.listeners = []
|
||||||
self.backends = []
|
self.backends = []
|
||||||
self.created_time = datetime.datetime.now()
|
self.created_time = datetime.datetime.now(pytz.utc)
|
||||||
self.scheme = scheme
|
self.scheme = scheme
|
||||||
self.attributes = FakeLoadBalancer.get_default_attributes()
|
self.attributes = FakeLoadBalancer.get_default_attributes()
|
||||||
self.policies = Policies()
|
self.policies = Policies()
|
||||||
|
@ -442,7 +442,7 @@ DESCRIBE_LOAD_BALANCERS_TEMPLATE = """<DescribeLoadBalancersResponse xmlns="http
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</SecurityGroups>
|
</SecurityGroups>
|
||||||
<LoadBalancerName>{{ load_balancer.name }}</LoadBalancerName>
|
<LoadBalancerName>{{ load_balancer.name }}</LoadBalancerName>
|
||||||
<CreatedTime>{{ load_balancer.created_time }}</CreatedTime>
|
<CreatedTime>{{ load_balancer.created_time.isoformat() }}</CreatedTime>
|
||||||
<HealthCheck>
|
<HealthCheck>
|
||||||
{% if load_balancer.health_check %}
|
{% if load_balancer.health_check %}
|
||||||
<Interval>{{ load_balancer.health_check.interval }}</Interval>
|
<Interval>{{ load_balancer.health_check.interval }}</Interval>
|
||||||
|
Loading…
Reference in New Issue
Block a user