Commit a4e38252 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5150a] Changed module by app_name as it can be reserved on some C++ extensions

parent 947a8d68
......@@ -491,7 +491,7 @@ ConstElementPtr
DControllerBase::configTestHandler(const std::string&, ConstElementPtr args) {
const int status_code = COMMAND_ERROR; // 1 indicates an error
ConstElementPtr module_config;
std::string module = getAppName();
std::string app_name = getAppName();
std::string message;
// Command arguments are expected to be:
......@@ -501,11 +501,11 @@ DControllerBase::configTestHandler(const std::string&, ConstElementPtr args) {
if (!args) {
message = "Missing mandatory 'arguments' parameter.";
} else {
module_config = args->get(module);
module_config = args->get(app_name);
if (!module_config) {
message = "Missing mandatory '" + module + "' parameter.";
message = "Missing mandatory '" + app_name + "' parameter.";
} else if (module_config->getType() != Element::map) {
message = "'" + module + "' parameter expected to be a map.";
message = "'" + app_name + "' parameter expected to be a map.";
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment