move cli
This commit is contained in:
@@ -9,12 +9,12 @@ KONVIVA_API_URL: str = os.getenv('KONVIVA_API_URL') # type: ignore
|
||||
KONVIVA_SECRET_KEY: str = os.getenv('KONVIVA_SECRET_KEY') # type: ignore
|
||||
|
||||
|
||||
match (os.getenv('AWS_SAM_LOCAL'), os.getenv('ELASTIC_HOSTS')):
|
||||
case (str() as AWS_SAM_LOCAL, _) if AWS_SAM_LOCAL:
|
||||
match os.getenv('AWS_SAM_LOCAL'), os.getenv('ELASTIC_HOSTS'):
|
||||
case str() as AWS_SAM_LOCAL, _ if AWS_SAM_LOCAL:
|
||||
ELASTIC_CONN = {
|
||||
'hosts': 'http://host.docker.internal:9200',
|
||||
}
|
||||
case (_, str() as ELASTIC_HOSTS) if ELASTIC_HOSTS:
|
||||
case _, str() as ELASTIC_HOSTS if ELASTIC_HOSTS:
|
||||
ELASTIC_CONN = {
|
||||
'hosts': ELASTIC_HOSTS,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user