Giuseppe Lavagetto has uploaded a new change for review. https://gerrit.wikimedia.org/r/257335
Change subject: pybal: do not overwrite stats for each server ...................................................................... pybal: do not overwrite stats for each server Change-Id: I78c3ee4ab0f1ffbd4ccfdc8707bde70f779ca14e --- M modules/pybal/files/pybal_state.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/35/257335/1 diff --git a/modules/pybal/files/pybal_state.py b/modules/pybal/files/pybal_state.py index b990989..9ed1f30 100644 --- a/modules/pybal/files/pybal_state.py +++ b/modules/pybal/files/pybal_state.py @@ -54,8 +54,8 @@ if total == 0: return self.publish('pools.{}.total'.format(name), total) + acc = {u'pooled': 0, u'enabled': 0, u'up': 0} for k, v in data.items(): - acc = {u'pooled': 0, u'enabled': 0, u'up': 0} del v['weight'] for label, val in v.items(): if val: -- To view, visit https://gerrit.wikimedia.org/r/257335 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I78c3ee4ab0f1ffbd4ccfdc8707bde70f779ca14e Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Giuseppe Lavagetto <glavage...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits