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:
parent
9cf5cc13fe
commit
cdb444dc9f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue