add AWS, oracle and Serv00 detection

pull/5/head
Who? 2024-11-07 21:28:02 +07:00 committed by GitHub
parent 042627d8a0
commit 29f2893584
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -25,6 +25,7 @@
import argparse
import asyncio
import socket
import collections
import contextlib
import importlib
@ -92,6 +93,9 @@ IS_RAILWAY = "RAILWAY" in os.environ
IS_GOORM = "GOORM" in os.environ
IS_LAVHOST = "LAVHOST" in os.environ
IS_HIKKAHOST = "HIKKAHOST" in os.environ
IS_ORACLE = "ORACLE_OS" in os.environ
IS_AWS = "AWS_OS" in os.environ
IS_SERV00 = "serv00" in socket.gethostname()
IS_WSL = False
with contextlib.suppress(Exception):
from platform import uname