Skip to content

Commit

Permalink
update code to always set workspace to path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ina Stoyanova committed May 13, 2024
1 parent 78affb6 commit 09b4c88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions pkg/atlantis/single-workspace-discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
7 changes: 0 additions & 7 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).",
Expand Down

0 comments on commit 09b4c88

Please sign in to comment.