Check number of channels for gerritbot
We currently have a limit of 120 channels, do not allow more channels to be set up. Change-Id: If70f1775b2d07d9af52c83a9d234c08ac73925ce
This commit is contained in:
parent
eb7800299f
commit
65a096a964
@ -59,6 +59,17 @@ def access_gerrit_check():
|
||||
print(" %s is missing from accessbot" % channel)
|
||||
errors = True
|
||||
|
||||
# IRC has a limit of 120 channels that we unfortunately hit with
|
||||
# gerritbot. If we try connect to more, it will not connect to
|
||||
# all. Avoid this situation.
|
||||
if len(gerrit_config) > 120:
|
||||
print ("gerritbot can only handle 120 channels but found %s."
|
||||
% len(gerrit_config))
|
||||
print ("Sorry, we're at our limit and cannot add more for now.")
|
||||
print ("If you want to help set up another instance contact the "
|
||||
"infra team in #openstack-infra.\n")
|
||||
errors = True
|
||||
|
||||
return errors
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user