[ADMIN_API] Cast byte_count to int in usage message
Change-Id: I70b08feef27104c4938f137957c59f623dbeae87
This commit is contained in:
parent
670387d982
commit
84de5791b3
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue