Lease handler not deleting some VMs.

After running one of the DUs for last two days noticed an error in the
log. It was on obvious error and revealed gaps in my test. Added the fix
and a unit test to fix the problem.
This commit is contained in:
Roopak Parikh 2016-04-13 10:48:04 -07:00
parent 9cf5cc13fe
commit cdb444dc9f
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
def get_vm_data(data):
return {'instance_uuid': data.id,
'tenant_uuid': data.tenant_id,
'created_at': datetime.strptime(data.created)}
'created_at': datetime.strptime(data.created, DATE_FORMAT)}
class NovaLeaseHandler:
def __init__(self, conf):