From 69e2fb810f3de41fdfa3907c8cae27042a3e44f1 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sat, 20 Nov 2021 11:06:10 -0500 Subject: [PATCH] update_mananger: use extended confighelper methods Signed-off-by: Eric Callahan --- moonraker/components/update_manager/update_manager.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/moonraker/components/update_manager/update_manager.py b/moonraker/components/update_manager/update_manager.py index 4c66aa4..7f13103 100644 --- a/moonraker/components/update_manager/update_manager.py +++ b/moonraker/components/update_manager/update_manager.py @@ -883,10 +883,9 @@ class WebClientDeploy(BaseDeploy): self.type = config.get('type') self.channel = "stable" if self.type == "web" else "beta" self.persistent_files: List[str] = [] - pfiles = config.get('persistent_files', None) + pfiles = config.getlist('persistent_files', None) if pfiles is not None: - self.persistent_files = [pf.strip().strip("/") for pf in - pfiles.split("\n") if pf.strip()] + self.persistent_files = [pf.strip("/") for pf in pfiles] if ".version" in self.persistent_files: raise config.error( "Invalid value for option 'persistent_files': "