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:
Eric Callahan 2022-12-12 16:59:22 -05:00
parent dde9bcc752
commit f296c6fadd
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ class BaseDeploy:
) -> None:
if name is None:
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
if prefix:
prefix = f"{prefix} {self.name}: "