From 0d625a342afc212f896aec628475315764e256ee Mon Sep 17 00:00:00 2001 From: Eslam-Nawara Date: Thu, 6 Jun 2024 16:41:25 +0300 Subject: [PATCH] fix lint --- .github/workflows/tfrobot_test.yml | 1 - tfrobot/cmd/load.go | 2 +- tfrobot/pkg/deployer/load.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tfrobot_test.yml b/.github/workflows/tfrobot_test.yml index b59444d1b..d4c9026f6 100644 --- a/.github/workflows/tfrobot_test.yml +++ b/.github/workflows/tfrobot_test.yml @@ -4,7 +4,6 @@ defaults: run: working-directory: tfrobot on: - push: schedule: - cron: 0 4 * * * workflow_dispatch: diff --git a/tfrobot/cmd/load.go b/tfrobot/cmd/load.go index 97da84e34..13aa69193 100644 --- a/tfrobot/cmd/load.go +++ b/tfrobot/cmd/load.go @@ -83,7 +83,7 @@ var loadCmd = &cobra.Command{ if err := deployer.RunLoader(ctx, cfg, tfPluginClient, debug, outputPath); err != nil { log.Error().Msg("failed to load configured deployments") - fmt.Println(err) + fmt.Println(err) os.Exit(1) } diff --git a/tfrobot/pkg/deployer/load.go b/tfrobot/pkg/deployer/load.go index e3665b577..99fe852e2 100644 --- a/tfrobot/pkg/deployer/load.go +++ b/tfrobot/pkg/deployer/load.go @@ -24,7 +24,7 @@ import ( type NodeContracts map[uint32][]uint64 -func RunLoader(ctx context.Context, cfg Config, tfPluginClient deployer.TFPluginClient, debug bool, output string) error { +func RunLoader(ctx context.Context, cfg Config, tfPluginClient deployer.TFPluginClient, debug bool, output string) *multierror.Error { log.Info().Msg("Loading deployments") asJson := filepath.Ext(output) == ".json"