This commit is contained in:
@@ -3,7 +3,7 @@ from django.http import HttpResponse
|
|||||||
from kubernetes_connection import apps as kubernetes_connection
|
from kubernetes_connection import apps as kubernetes_connection
|
||||||
import datetime
|
import datetime
|
||||||
from cloudmanager import credentials
|
from cloudmanager import credentials
|
||||||
|
import os
|
||||||
|
|
||||||
def hello(request):
|
def hello(request):
|
||||||
kubernetes_connection.echoHello();
|
kubernetes_connection.echoHello();
|
||||||
@@ -97,7 +97,15 @@ def all_operations(request,wanted_state,list_machine):
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
def main(request):
|
def main(request):
|
||||||
generated_db = DB_generation(credentials.sql.url, credentials.sql.port, credentials.sql.user, credentials.sql.password,credentials.sql.database)
|
|
||||||
|
#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')
|
||||||
|
|
||||||
|
generated_db = DB_generation(db_host, db_port, db_user, db_password,db_name)
|
||||||
##operation:
|
##operation:
|
||||||
## Server(s) supposed to be UP
|
## Server(s) supposed to be UP
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user