FixNameFile
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 21s
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 21s
This commit is contained in:
@@ -10,6 +10,9 @@ from psycopg2.extras import LoggingConnection
|
||||
CORS_HEADERS = {
|
||||
"Content-Type": "application/json",
|
||||
}
|
||||
SECRET_NAME = "fission-ailbl-user-phone-env"
|
||||
CONFIG_NAME = "fission-eom-notification-config"
|
||||
K8S_NAMESPACE = "default"
|
||||
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
@@ -95,6 +98,7 @@ def check_port_open(ip: str, port: int, timeout: int = 30):
|
||||
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
|
||||
@@ -103,4 +107,4 @@ def str_to_bool(value: str | None) -> typing.Optional[bool]:
|
||||
return True
|
||||
if val in ("false", "0", "no"):
|
||||
return False
|
||||
return None
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user