Use the current time when launching an instance.
This commit is contained in:
parent
babb7450ec
commit
062256ada3
2 changed files with 2 additions and 1 deletions
|
|
@ -299,6 +299,7 @@ class Instance(BotoInstance, TaggedEC2Resource):
|
|||
self.subnet_id = kwargs.get("subnet_id")
|
||||
self.key_name = kwargs.get("key_name")
|
||||
self.source_dest_check = "true"
|
||||
self.launch_time = datetime.now().strftime('%y-%m-%dT%H:%M:%S%z')
|
||||
|
||||
self.block_device_mapping = BlockDeviceMapping()
|
||||
self.block_device_mapping['/dev/sda1'] = BlockDeviceType(volume_id=random_volume_id())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue