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

This commit is contained in:
pierre geeraert
2026-03-26 23:44:59 +00:00
parent c8d784ae2b
commit 5521b70e46
+6 -6
View File
@@ -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