update_manager: allow old application naming convention
While the [update_manager client ...] naming convention is deprecated it should not be disallowed. This fixes service restart issues using the old naming convention. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
dde9bcc752
commit
f296c6fadd
|
@ -24,6 +24,9 @@ class BaseDeploy:
|
||||||
) -> None:
|
) -> None:
|
||||||
if name is None:
|
if name is None:
|
||||||
name = config.get_name().split(maxsplit=1)[-1]
|
name = config.get_name().split(maxsplit=1)[-1]
|
||||||
|
if name.startswith("client "):
|
||||||
|
# allow deprecated [update_manager client app] style names
|
||||||
|
name = name[7:]
|
||||||
self.name = name
|
self.name = name
|
||||||
if prefix:
|
if prefix:
|
||||||
prefix = f"{prefix} {self.name}: "
|
prefix = f"{prefix} {self.name}: "
|
||||||
|
|
Loading…
Reference in New Issue