Merge "Remove redundant second cast to int"

This commit is contained in:
Zuul 2019-02-28 06:55:47 +00:00 committed by Gerrit Code Review
commit 07765a488c

View File

@ -3540,8 +3540,7 @@ def _build_provider_summaries(context, usages, prov_traits):
rpsr = ProviderSummaryResource( rpsr = ProviderSummaryResource(
resource_class=rc_name, resource_class=rc_name,
capacity=cap, capacity=cap,
# FIXME(cdent): This might be a decimal used=used,
used=int(used),
max_unit=usage['max_unit'], max_unit=usage['max_unit'],
) )
summary.resources.append(rpsr) summary.resources.append(rpsr)