Skip to content

Commit 9e92907

Browse files
committed
fix(tf): ignore workspace only for default
1 parent b8529b5 commit 9e92907

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

db_lib/TerraformApp.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@ func (t *TerraformApp) InstallRequirements(environmentVars *[]string) (err error
122122
return
123123
}
124124

125-
if !t.isWorkspacesSupported(environmentVars) {
126-
return
127-
}
128-
129125
workspace := "default"
130126

131127
if t.Inventory.Inventory != "" {
132128
workspace = t.Inventory.Inventory
133129
}
134130

131+
if workspace == "default" && !t.isWorkspacesSupported(environmentVars) {
132+
return
133+
}
134+
135135
err = t.selectWorkspace(workspace, environmentVars)
136136
return
137137
}

0 commit comments

Comments
 (0)