From ce78e42065ea05fc0f4133966c43401da84d090d Mon Sep 17 00:00:00 2001 From: Arksine Date: Thu, 18 Mar 2021 08:14:01 -0400 Subject: [PATCH] app: use "lookup_component" instead of "lookup_plugin" Signed-off-by: Eric Callahan --- moonraker/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonraker/app.py b/moonraker/app.py index aef0bc1..a657e13 100644 --- a/moonraker/app.py +++ b/moonraker/app.py @@ -380,7 +380,7 @@ class FileRequestHandler(AuthorizedFileHandler): async def delete(self, path): path = self.request.path.lstrip("/").split("/", 2)[-1] path = url_unescape(path, plus=False) - file_manager = self.server.lookup_plugin('file_manager') + file_manager = self.server.lookup_component('file_manager') try: filename = await file_manager.delete_file(path) except self.server.error as e: @@ -395,7 +395,7 @@ class FileRequestHandler(AuthorizedFileHandler): class FileUploadHandler(AuthorizedRequestHandler): def initialize(self, max_upload_size): super(FileUploadHandler, self).initialize() - self.file_manager = self.server.lookup_plugin('file_manager') + self.file_manager = self.server.lookup_component('file_manager') self.max_upload_size = max_upload_size def prepare(self):