1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-12 09:17:56 +03:00

Small fis on service pool

This commit is contained in:
Adolfo Gómez García 2021-07-10 21:16:33 +02:00
parent aaa909fff0
commit b29baf2a29

View File

@ -250,8 +250,8 @@ class ServicePool(UUIDModel, TaggingMixin): # type: ignore
logger.debug(
"SHORT: %s %s %s", self.short_name, self.short_name is not None, self.name
)
if self.short_name is not None and str(self.short_name).strip() != '':
return str(self.short_name)
if self.short_name and str(self.short_name).strip():
return str(self.short_name.strip())
return str(self.name)
def isRestrained(self) -> bool: