From 95c8f23c509138ffd433f052f20832b1ac5363da Mon Sep 17 00:00:00 2001 From: Pavel Okhlopkov <36456348+ldmonster@users.noreply.github.com> Date: Wed, 11 Dec 2024 18:17:35 +0300 Subject: [PATCH] Fix/return global value to proxy json hook (#543) Signed-off-by: Pavel Okhlopkov Co-authored-by: Pavel Okhlopkov --- pkg/module_manager/models/hooks/kind/batch_hook.go | 2 +- pkg/module_manager/models/hooks/kind/shellhook.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/module_manager/models/hooks/kind/batch_hook.go b/pkg/module_manager/models/hooks/kind/batch_hook.go index adefca25..1180a6eb 100644 --- a/pkg/module_manager/models/hooks/kind/batch_hook.go +++ b/pkg/module_manager/models/hooks/kind/batch_hook.go @@ -133,7 +133,7 @@ func (sh *BatchHook) Execute(configVersion string, bContext []bindingcontext.Bin sh.GetPath(), args, envs). - WithLogProxyHookJSON(sh.LogProxyHookJSON). + WithLogProxyHookJSON(shapp.LogProxyHookJSON). WithLogProxyHookJSONKey(sh.LogProxyHookJSONKey). WithLogger(sh.Logger.Named("executor")) diff --git a/pkg/module_manager/models/hooks/kind/shellhook.go b/pkg/module_manager/models/hooks/kind/shellhook.go index ed49ff63..18fbaaca 100644 --- a/pkg/module_manager/models/hooks/kind/shellhook.go +++ b/pkg/module_manager/models/hooks/kind/shellhook.go @@ -123,7 +123,7 @@ func (sh *ShellHook) Execute(configVersion string, bContext []bindingcontext.Bin sh.GetPath(), []string{}, envs). - WithLogProxyHookJSON(sh.LogProxyHookJSON). + WithLogProxyHookJSON(shapp.LogProxyHookJSON). WithLogProxyHookJSONKey(sh.LogProxyHookJSONKey). WithLogger(sh.Logger.Named("executor")) @@ -171,7 +171,7 @@ func (sh *ShellHook) getConfig() (configOutput []byte, err error) { sh.Path, args, envs). - WithLogProxyHookJSON(sh.LogProxyHookJSON). + WithLogProxyHookJSON(shapp.LogProxyHookJSON). WithLogProxyHookJSONKey(sh.LogProxyHookJSONKey). WithLogger(sh.Logger.Named("executor")). WithCMDStdout(nil)