Merge pull request #111 from ramielrowe/master

Promoting Usage Seed Bugfix to Stable
This commit is contained in:
Andrew Melton 2013-06-06 10:57:43 -07:00
commit 708ee75cac

View File

@ -189,6 +189,7 @@ def seed(period_length):
else: else:
if task_state in in_flight_tasks: if task_state in in_flight_tasks:
if (instance['deleted'] != 0 and if (instance['deleted'] != 0 and
instance['deleted_at'] is not None and
instance['deleted_at'] >= start): instance['deleted_at'] >= start):
# Just in case... # Just in case...
deletes.append(_delete_for_instance(instance)) deletes.append(_delete_for_instance(instance))
@ -199,6 +200,7 @@ def seed(period_length):
task=task_state)) task=task_state))
else: else:
if (instance['deleted'] != 0 and if (instance['deleted'] != 0 and
instance['deleted_at'] is not None and
instance['deleted_at'] >= start): instance['deleted_at'] >= start):
deletes.append(_delete_for_instance(instance)) deletes.append(_delete_for_instance(instance))
usages.append(_usage_for_instance(instance)) usages.append(_usage_for_instance(instance))