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:
parent
aaa909fff0
commit
b29baf2a29
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user