[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
committed by David Shrewsbury
parent adc9e69166
commit dd82888062

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