[ADMIN_API] Cast byte_count to int in usage message

Change-Id: I70b08feef27104c4938f137957c59f623dbeae87
This commit is contained in:
Marc Pilon 2014-01-15 16:30:16 -05:00
parent 670387d982
commit 84de5791b3
1 changed files with 1 additions and 0 deletions

View File

@ -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))