From 35d0f83bfcf61a137d3355ce8f3d98c12850059a Mon Sep 17 00:00:00 2001 From: Ivan Styazhkin Date: Fri, 1 Mar 2024 04:27:54 -0800 Subject: [PATCH] Follow up changes Summary: Rename file, actualize success message. Reference to open issue about file naming in golang projects https://github.com/golang/go/issues/36060 Reviewed By: l50 Differential Revision: D54360635 fbshipit-source-id: 1631f876273e89baa53755254fdc57d7d662dd4f --- pkg/blocks/{signal_handler.go => signalhandler.go} | 0 pkg/blocks/ttps.go | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) rename pkg/blocks/{signal_handler.go => signalhandler.go} (100%) diff --git a/pkg/blocks/signal_handler.go b/pkg/blocks/signalhandler.go similarity index 100% rename from pkg/blocks/signal_handler.go rename to pkg/blocks/signalhandler.go diff --git a/pkg/blocks/ttps.go b/pkg/blocks/ttps.go index 84ab3bb8..8d5b4ea5 100755 --- a/pkg/blocks/ttps.go +++ b/pkg/blocks/ttps.go @@ -194,7 +194,11 @@ func (t *TTP) Execute(execCtx TTPExecutionContext) error { return fmt.Errorf("TTP requirements not met: %w", err) } - return t.RunSteps(execCtx) + err := t.RunSteps(execCtx) + if err == nil { + logging.L().Info("All TTP steps completed successfully! ✅") + } + return err } // RunSteps executes all of the steps in the given TTP. @@ -286,7 +290,6 @@ func (t *TTP) RunSteps(execCtx TTPExecutionContext) error { return fmt.Errorf("[*] Shutting Down now") } - logging.L().Info("All steps completed successfully! ✅") return nil }