Merge "Resolve deprecation warning from pecan"
This commit is contained in:
@@ -109,7 +109,7 @@ class RootController(rest.RestController):
|
||||
return Root.convert()
|
||||
|
||||
@pecan.expose()
|
||||
def _route(self, args):
|
||||
def _route(self, args, request=None):
|
||||
"""Overrides the default routing behavior.
|
||||
|
||||
It redirects the request to the default version of the watcher API
|
||||
@@ -118,4 +118,4 @@ class RootController(rest.RestController):
|
||||
|
||||
if args[0] and args[0] not in self._versions:
|
||||
args = [self._default_version] + args
|
||||
return super(RootController, self)._route(args)
|
||||
return super(RootController, self)._route(args, request)
|
||||
|
Reference in New Issue
Block a user