update_mananger: use extended confighelper methods

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-11-20 11:06:10 -05:00
parent 4572bd955e
commit 69e2fb810f
1 changed files with 2 additions and 3 deletions

View File

@ -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': "