From 09b4c881af560a3d1792df7d386165d59f78f29e Mon Sep 17 00:00:00 2001 From: Ina Stoyanova Date: Mon, 13 May 2024 10:18:06 +0100 Subject: [PATCH] update code to always set workspace to path --- pkg/atlantis/single-workspace-discovery.go | 3 +-- pkg/config/config.go | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/pkg/atlantis/single-workspace-discovery.go b/pkg/atlantis/single-workspace-discovery.go index 2b2e402..5693e3a 100644 --- a/pkg/atlantis/single-workspace-discovery.go +++ b/pkg/atlantis/single-workspace-discovery.go @@ -13,8 +13,7 @@ func singleWorkspaceDiscoveryFilter(info os.FileInfo, path, patternDetector stri func singleWorkspaceDetectProjectWorkspaces(foldersList []ProjectFolder) ([]ProjectFolder, error) { for i := range foldersList { - foldersList[i].WorkspaceList = []string{"default"} + foldersList[i].WorkspaceList = []string{foldersList[i].Path} } return foldersList, nil - } diff --git a/pkg/config/config.go b/pkg/config/config.go index e8544f1..3d4ce48 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -80,13 +80,6 @@ var ParameterList = []Parameter{ DefaultValue: "", Shorthand: "w", }, - { - Name: "workspace", - Description: "Define the name of the workspace you want to be used.", - Required: false, - DefaultValue: "default", - Shorthand: "ws", - }, { Name: "when-modified", Description: "Atlantis will trigger an autoplan when these modifications occur (list of strings).",