Merge "Remove redundant second cast to int"
This commit is contained in:
commit
07765a488c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user