[ADMIN_API] Cast byte_count to int in usage message
Change-Id: I70b08feef27104c4938f137957c59f623dbeae87
This commit is contained in:
committed by
David Shrewsbury
parent
adc9e69166
commit
dd82888062
@@ -252,6 +252,7 @@ def _send_usage(event_type, start, stop):
|
||||
for lb in stats:
|
||||
lbid, byte_count = lb
|
||||
|
||||
byte_count = int(byte_count)
|
||||
if lbid not in loadbalancers:
|
||||
LOG.error("Loadbalancer {0} not found in DB "
|
||||
"not sending usage statistics".format(lbid))
|
||||
|
||||
Reference in New Issue
Block a user