Repository :
http://git.fedorahosted.org/cgit/
On branch : master
---------------------------------------------------------------
commit b980ed5f9370b8e38b5d377e08415b4228db9816
Author: Matt Domsch <matt(a)domsch.com>
Date: Thu Jul 25 16:46:27 2013 -0500
remove test for bandwidth_int not being an int, it must be now.
---------------------------------------------------------------
server/generate-publiclist | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/server/generate-publiclist b/server/generate-publiclist
index d9454b9..6ca4203 100755
--- a/server/generate-publiclist
+++ b/server/generate-publiclist
@@ -178,14 +178,9 @@ def generate_one_html(engine, pvaMatrix, productname=None,
vername=None, archnam
hosts = publiclist_hosts(productname=productname, vername=vername,
archname=archname)
logger.debug('pvaMatrix(%s, %s, %s) did not have hosts, query required.'
% (productname, vername, archname))
-
bandwidth = 0
for h in hosts:
- if not isinstance(h.bandwidth_int, int):
- msg = '%s bandwidth_int was not an int: %s' % (h, h.bandwidth_int)
- logger.warning(msg)
- h.bandwidth_int = 1
- bandwidth = bandwidth + h.bandwidth_int
+ bandwidth += h.bandwidth_int
bandwidth = bandwidth / 1024 # convert to Gb
template_data = dict(page_title=title, hosts=hosts, numhosts=len(hosts),
bandwidth=bandwidth,