Cleanup unused connection.getWebController info param
This info parameter to getWebController is unused (and redundant as the zuul_web parameter has the info attribute attached to it). Clean it out to avoid confusion. Change-Id: I6ce12b535f56f8fa367a9a99d3e46bc26c2a50d8
This commit is contained in:
parent
57c0a67f89
commit
f0c38b52e6
|
@ -75,14 +75,11 @@ class BaseConnection(object, metaclass=abc.ABCMeta):
|
|||
still in use. Anything in our cache that isn't in the supplied
|
||||
list should be safe to remove from the cache."""
|
||||
|
||||
def getWebController(self, zuul_web, info):
|
||||
def getWebController(self, zuul_web):
|
||||
"""Return a cherrypy web controller to register with zuul-web.
|
||||
|
||||
:param zuul.web.ZuulWeb zuul_web:
|
||||
Zuul Web instance.
|
||||
:param zuul.model.WebInfo info:
|
||||
The WebInfo object for the Zuul Web instance. Can be used by
|
||||
plugins to toggle API capabilities.
|
||||
:returns: A `zuul.web.handler.BaseWebController` instance.
|
||||
"""
|
||||
return None
|
||||
|
|
|
@ -1148,7 +1148,7 @@ class GithubConnection(BaseConnection):
|
|||
|
||||
return statuses
|
||||
|
||||
def getWebController(self, zuul_web, info):
|
||||
def getWebController(self, zuul_web):
|
||||
return GithubWebController(zuul_web, self)
|
||||
|
||||
def validateWebConfig(self, config, connections):
|
||||
|
|
|
@ -340,7 +340,7 @@ class ZuulWeb(object):
|
|||
controller=api, action='builds')
|
||||
|
||||
for connection in connections.connections.values():
|
||||
controller = connection.getWebController(self, self.info)
|
||||
controller = connection.getWebController(self)
|
||||
if controller:
|
||||
cherrypy.tree.mount(
|
||||
controller,
|
||||
|
|
Loading…
Reference in New Issue