From ebf578433cb1c7297d38d7793eb2d0236c34ac49 Mon Sep 17 00:00:00 2001 From: Shawna Monero Date: Mon, 15 Apr 2024 09:44:47 -0700 Subject: [PATCH] moar logging --- cmd/adhoc.go | 4 ---- server/neptune/adhoc/config/config.go | 2 -- server/neptune/adhoc/server.go | 3 ++- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/cmd/adhoc.go b/cmd/adhoc.go index 0603b3299..197f645e1 100644 --- a/cmd/adhoc.go +++ b/cmd/adhoc.go @@ -67,10 +67,6 @@ func (a *Adhoc) NewServer(userConfig legacy.UserConfig, config legacy.Config) (S GithubAppKeyFile: userConfig.GithubAppKeyFile, GithubAppSlug: userConfig.GithubAppSlug, GlobalCfg: globalCfg, - ValidationConfig: neptune.ValidationConfig{ - DefaultVersion: globalCfg.PolicySets.Version, - Policies: globalCfg.PolicySets, - }, } return adhoc.NewServer(cfg) } diff --git a/server/neptune/adhoc/config/config.go b/server/neptune/adhoc/config/config.go index fd94d6b96..ac01acff5 100644 --- a/server/neptune/adhoc/config/config.go +++ b/server/neptune/adhoc/config/config.go @@ -29,6 +29,4 @@ type Config struct { GithubHostname string GlobalCfg valid.GlobalCfg - - ValidationConfig neptune.ValidationConfig } diff --git a/server/neptune/adhoc/server.go b/server/neptune/adhoc/server.go index bd3566a46..f5cef06a8 100644 --- a/server/neptune/adhoc/server.go +++ b/server/neptune/adhoc/server.go @@ -34,6 +34,7 @@ import ( neptune_http "github.com/runatlantis/atlantis/server/neptune/http" internalSync "github.com/runatlantis/atlantis/server/neptune/sync" "github.com/runatlantis/atlantis/server/neptune/temporal" + neptune "github.com/runatlantis/atlantis/server/neptune/temporalworker/config" "github.com/runatlantis/atlantis/server/neptune/workflows" "github.com/runatlantis/atlantis/server/neptune/workflows/activities" "github.com/runatlantis/atlantis/server/static" @@ -108,7 +109,7 @@ func NewServer(config *adhocconfig.Config) (*Server, error) { terraformActivities, err := activities.NewTerraform( config.TerraformCfg, - config.ValidationConfig, + neptune.ValidationConfig{}, config.App, config.DataDir, config.ServerCfg.URL,