Add milliseconds to EC2 launch time. Closes #445.
This commit is contained in:
parent
d9faab3e5e
commit
73452c79f7
@ -98,7 +98,7 @@ from .utils import (
|
||||
|
||||
|
||||
def utc_date_and_time():
|
||||
return datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')
|
||||
return datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S.000Z')
|
||||
|
||||
|
||||
def validate_resource_ids(resource_ids):
|
||||
|
@ -53,7 +53,7 @@ def test_instance_launch_and_terminate():
|
||||
instances.should.have.length_of(1)
|
||||
instances[0].id.should.equal(instance.id)
|
||||
instances[0].state.should.equal('running')
|
||||
instances[0].launch_time.should.equal("2014-01-01T05:00:00Z")
|
||||
instances[0].launch_time.should.equal("2014-01-01T05:00:00.000Z")
|
||||
instances[0].vpc_id.should.equal(None)
|
||||
|
||||
root_device_name = instances[0].root_device_name
|
||||
|
Loading…
Reference in New Issue
Block a user