diff --git a/watcher/api/controllers/root.py b/watcher/api/controllers/root.py index 835b33c65..a2706edbd 100644 --- a/watcher/api/controllers/root.py +++ b/watcher/api/controllers/root.py @@ -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)