Skip to content

Commit 975cb50

Browse files
committed
Fixed lint issues and added comments
1 parent 5b47939 commit 975cb50

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

workspace.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ type Workspace struct {
199199
ExecutionMode string `jsonapi:"attr,execution-mode"`
200200
FileTriggersEnabled bool `jsonapi:"attr,file-triggers-enabled"`
201201
GlobalRemoteState bool `jsonapi:"attr,global-remote-state"`
202-
ProjectRemoteState bool `jsonapi:"attr,project-remote-state"`
202+
// **Note: This field is still in BETA and subject to change.**
203+
ProjectRemoteState bool `jsonapi:"attr,project-remote-state"`
203204
InheritsProjectAutoDestroy bool `jsonapi:"attr,inherits-project-auto-destroy"`
204205
Locked bool `jsonapi:"attr,locked"`
205206
MigrationEnvironment string `jsonapi:"attr,migration-environment"`
@@ -436,6 +437,7 @@ type WorkspaceCreateOptions struct {
436437

437438
GlobalRemoteState *bool `jsonapi:"attr,global-remote-state,omitempty"`
438439

440+
// **Note: This field is still in BETA and subject to change.**
439441
// Optional: Allows the workspace to share remote state at the project level.
440442
// Default is false.
441443
ProjectRemoteState *bool `jsonapi:"attr,project-remote-state,omitempty"`
@@ -614,6 +616,7 @@ type WorkspaceUpdateOptions struct {
614616
// Optional:
615617
GlobalRemoteState *bool `jsonapi:"attr,global-remote-state,omitempty"`
616618

619+
// **Note: This field is still in BETA and subject to change.**
617620
// Optional: Allows the workspace to share remote state at the project level.
618621
// Default is false.
619622
ProjectRemoteState *bool `jsonapi:"attr,project-remote-state,omitempty"`

workspace_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,7 +3431,7 @@ func TestWorkspacesProjectRemoteState(t *testing.T) {
34313431
// Update workspace to allow project remote state sharing
34323432
options := WorkspaceUpdateOptions{
34333433
ProjectRemoteState: Bool(true),
3434-
GlobalRemoteState: Bool(false),
3434+
GlobalRemoteState: Bool(false),
34353435
}
34363436
wTest, err := client.Workspaces.Update(ctx, orgTest.Name, wTest.Name, options)
34373437
require.NoError(t, err)
@@ -3480,7 +3480,7 @@ func TestWorkspacesProjectRemoteState(t *testing.T) {
34803480
// Update workspace to allow project remote state sharing
34813481
options := WorkspaceUpdateOptions{
34823482
ProjectRemoteState: Bool(true),
3483-
GlobalRemoteState: Bool(true),
3483+
GlobalRemoteState: Bool(true),
34843484
}
34853485

34863486
_, err = client.Workspaces.Update(ctx, orgTest.Name, wTest.Name, options)

0 commit comments

Comments
 (0)