ClassFilterDone
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 11s

This commit is contained in:
QuangMinh_123
2025-12-09 10:07:13 +07:00
parent 26a73dd2ac
commit de272cdab4
4 changed files with 68 additions and 4 deletions

View File

@@ -94,3 +94,13 @@ def check_port_open(ip: str, port: int, timeout: int = 30):
except Exception as err:
current_app.logger.err(f"Check port open error: {err}")
return False
def str_to_bool(value: str | None) -> typing.Optional[bool]:
if value is None:
return None
val = value.strip().lower()
if val in ("true", "1", "yes"):
return True
if val in ("false", "0", "no"):
return False
return None