fix - get_total_used_weight in rancher services
This commit is contained in:
@@ -152,7 +152,7 @@ def rancher_quota_weight(
|
||||
total_weight += rancher_plan_weight
|
||||
print(total_weight)
|
||||
# get rancher remaining usage of quota for purchase
|
||||
rancher_remaining_usage = RancherService.get_total_used_weight(rancher, InventoryQuotaSaleItem)
|
||||
rancher_remaining_usage = RancherService.get_total_used_weight(rancher, InventoryQuotaSaleItem, distribution)
|
||||
|
||||
if total_weight - rancher_remaining_usage < 0:
|
||||
remaining_weight = 0
|
||||
|
||||
Reference in New Issue
Block a user