forked from shaba/openuds
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…
x
Reference in New Issue
Block a user