mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-27 14:03:53 +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(
|
logger.debug(
|
||||||
"SHORT: %s %s %s", self.short_name, self.short_name is not None, self.name
|
"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() != '':
|
if self.short_name and str(self.short_name).strip():
|
||||||
return str(self.short_name)
|
return str(self.short_name.strip())
|
||||||
return str(self.name)
|
return str(self.name)
|
||||||
|
|
||||||
def isRestrained(self) -> bool:
|
def isRestrained(self) -> bool:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user