summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/rc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/just_mr/rc.cpp')
-rw-r--r--src/other_tools/just_mr/rc.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/other_tools/just_mr/rc.cpp b/src/other_tools/just_mr/rc.cpp
index 51813dfb..7d7f6f5a 100644
--- a/src/other_tools/just_mr/rc.cpp
+++ b/src/other_tools/just_mr/rc.cpp
@@ -635,6 +635,16 @@ namespace {
if (msg->IsString()) {
clargs->invocation_log.invocation_msg = msg->String();
}
+ auto context_vars =
+ invocation_log->Get("context variables", Expression::none_t{});
+ if (context_vars->IsList()) {
+ for (auto const& env_var : context_vars->List()) {
+ if (env_var->IsString()) {
+ clargs->invocation_log.context_vars.emplace_back(
+ env_var->String());
+ }
+ }
+ }
}
}
// read config lookup order