Removing fake request_id from past deletes migration
This commit is contained in:
parent
9030e174b9
commit
1bc6dac659
@ -24,14 +24,12 @@ def add_past_deletes(start, end):
|
|||||||
i = 0
|
i = 0
|
||||||
for exist in exists:
|
for exist in exists:
|
||||||
i += 1
|
i += 1
|
||||||
print i
|
|
||||||
if models.InstanceDeletes.objects\
|
if models.InstanceDeletes.objects\
|
||||||
.filter(instance=exist.instance).count() == 0:
|
.filter(instance=exist.instance).count() == 0:
|
||||||
# No deletes found for an instance that was deleted.
|
# No deletes found for an instance that was deleted.
|
||||||
values = {'instance': exist.instance,
|
values = {'instance': exist.instance,
|
||||||
'launched_at': exist.launched_at,
|
'launched_at': exist.launched_at,
|
||||||
'deleted_at': exist.deleted_at,
|
'deleted_at': exist.deleted_at}
|
||||||
'request_id': 'req-fake-delete'}
|
|
||||||
print values
|
print values
|
||||||
models.InstanceDeletes(**values).save()
|
models.InstanceDeletes(**values).save()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user