1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

Feature #2917: Overwrite ONEGATE_ENDPOINT in the context even if the user has defined it in the user template

This commit is contained in:
Jaime Melis 2014-07-15 19:06:18 +02:00
parent b588485bde
commit 4c3ca07869

View File

@ -925,13 +925,9 @@ int VirtualMachine::parse_context(string& error_str)
if (token)
{
string endpoint;
endpoint = context_parsed->vector_value("ONEGATE_ENDPOINT");
if ( endpoint.empty() )
{
Nebula::instance().get_configuration_attribute(
Nebula::instance().get_configuration_attribute(
"ONEGATE_ENDPOINT", endpoint);
}
if ( endpoint.empty() )
{