adding custom DB name for the terraform secret that point to the django db not the cmm one
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
@@ -99,12 +99,12 @@ def all_operations(request,wanted_state,list_machine):
|
||||
def main(request):
|
||||
|
||||
#get credentials from the env
|
||||
db_host = os.environ.get('db_host')
|
||||
db_port = os.environ.get('db_port')
|
||||
db_user = os.environ.get('db_user')
|
||||
db_password = os.environ.get('db_password')
|
||||
db_name = os.environ.get('db_name')
|
||||
|
||||
db_host = os.environ.get('DB_HOST')
|
||||
db_port = os.environ.get('DB_PORT')
|
||||
db_user = os.environ.get('DB_USERNAME')
|
||||
db_password = os.environ.get('DB_PASSWORD')
|
||||
db_name = os.environ.get('CUSTOM_DB_DATABASE',os.environ.get('DB_DATABASE'))
|
||||
print(db_name)
|
||||
generated_db = DB_generation(db_host, db_port, db_user, db_password,db_name)
|
||||
##operation:
|
||||
## Server(s) supposed to be UP
|
||||
|
||||
Reference in New Issue
Block a user