diff --git a/source/src/utils/service_env_validator.cpp b/source/src/utils/service_env_validator.cpp index 67c4561..cefed91 100644 --- a/source/src/utils/service_env_validator.cpp +++ b/source/src/utils/service_env_validator.cpp @@ -75,7 +75,11 @@ bool validate_and_fix_service_env( } // Find extra variables (in service but not in template or template_info) + // Note: TEMPLATE is a special variable added when creating a service, never comment it out for (const auto& service_var_name : service_var_names) { + if (service_var_name == "TEMPLATE") { + continue; // Never treat TEMPLATE as an extra variable + } if (template_var_names.find(service_var_name) == template_var_names.end() && template_info_var_names.find(service_var_name) == template_info_var_names.end()) { extra_vars.push_back(service_var_name);