File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
"context"
5
5
"reflect"
6
6
"strconv"
7
+ "strings"
7
8
8
9
"github.com/google/uuid"
9
10
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
@@ -160,12 +161,12 @@ func workspaceDataSource() *schema.Resource {
160
161
161
162
// isPrebuiltWorkspace returns true if the workspace is an unclaimed prebuilt workspace.
162
163
func isPrebuiltWorkspace () bool {
163
- return helpers .OptionalEnv (IsPrebuildEnvironmentVariable ()) == "true"
164
+ return strings . EqualFold ( helpers .OptionalEnv (IsPrebuildEnvironmentVariable ()), "true" )
164
165
}
165
166
166
167
// isPrebuiltWorkspaceClaim returns true if the workspace is a prebuilt workspace which has just been claimed.
167
168
func isPrebuiltWorkspaceClaim () bool {
168
- return helpers .OptionalEnv (IsPrebuildClaimEnvironmentVariable ()) == "true"
169
+ return strings . EqualFold ( helpers .OptionalEnv (IsPrebuildClaimEnvironmentVariable ()), "true" )
169
170
}
170
171
171
172
// IsPrebuildEnvironmentVariable returns the name of the environment variable that
You can’t perform that action at this time.
0 commit comments