Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Commit

Permalink
Exclude erred resource from usage update
Browse files Browse the repository at this point in the history
  • Loading branch information
p-p-m committed May 11, 2016
1 parent ea73b2f commit c56f4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodeconductor_killbill/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def update_today_usage():
"""

for model in PaidResource.get_all_models():
for resource in model.objects.all():
for resource in model.objects.exclude(state=model.States.ERRED):
update_today_usage_of_resource.delay(resource.to_string())


Expand Down

0 comments on commit c56f4dd

Please sign in to comment.