update_mananger: use extended confighelper methods
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
4572bd955e
commit
69e2fb810f
|
@ -883,10 +883,9 @@ class WebClientDeploy(BaseDeploy):
|
||||||
self.type = config.get('type')
|
self.type = config.get('type')
|
||||||
self.channel = "stable" if self.type == "web" else "beta"
|
self.channel = "stable" if self.type == "web" else "beta"
|
||||||
self.persistent_files: List[str] = []
|
self.persistent_files: List[str] = []
|
||||||
pfiles = config.get('persistent_files', None)
|
pfiles = config.getlist('persistent_files', None)
|
||||||
if pfiles is not None:
|
if pfiles is not None:
|
||||||
self.persistent_files = [pf.strip().strip("/") for pf in
|
self.persistent_files = [pf.strip("/") for pf in pfiles]
|
||||||
pfiles.split("\n") if pf.strip()]
|
|
||||||
if ".version" in self.persistent_files:
|
if ".version" in self.persistent_files:
|
||||||
raise config.error(
|
raise config.error(
|
||||||
"Invalid value for option 'persistent_files': "
|
"Invalid value for option 'persistent_files': "
|
||||||
|
|
Loading…
Reference in New Issue