From c938ce738d145e010801994d49f475a8159c0a0f Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Wed, 26 Apr 2017 10:27:15 +0530 Subject: [PATCH] Setting the opennebula params from the env --- dynamicweb/settings/base.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dynamicweb/settings/base.py b/dynamicweb/settings/base.py index b961db5e..6eff26f8 100644 --- a/dynamicweb/settings/base.py +++ b/dynamicweb/settings/base.py @@ -481,23 +481,23 @@ GUARDIAN_GET_INIT_ANONYMOUS_USER = 'membership.models.get_anonymous_user_instanc ############################################# # The oneadmin user name of the OpenNebula infrastructure -OPENNEBULA_USERNAME = 'oneadmin' +OPENNEBULA_USERNAME = env('OPENNEBULA_USER') # The oneadmin password of the OpenNebula infrastructure # The default credentials of the Sandbox OpenNebula VM is # oneadmin:opennebula -OPENNEBULA_PASSWORD = 'opennebula' +OPENNEBULA_PASSWORD = env('OPENNEBULA_PASSWORD') # The protocol is generally http or https -OPENNEBULA_PROTOCOL = 'http' +OPENNEBULA_PROTOCOL = env('OPENNEBULA_PROTOCOL') # The ip address or the domain name of the opennebula infrastructure -OPENNEBULA_DOMAIN = '192.168.182.124' +OPENNEBULA_DOMAIN = env('OPENNEBULA_DOMAIN') # The port to connect in order to send an xmlrpc request. The default # port is 2633 -OPENNEBULA_PORT = '2633' +OPENNEBULA_PORT = env('OPENNEBULA_PORT') # The endpoint to which the XML RPC request needs to be sent to. The # default value is /RPC2 -OPENNEBULA_ENDPOINT = '/RPC2' +OPENNEBULA_ENDPOINT = env('OPENNEBULA_ENDPOINT')