Skip to content

Commit 509df39

Browse files
committed
Add a comment to clarify that AllowForceDelete will be false for old TFE versions
1 parent 874da9f commit 509df39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

organization.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ type Organization struct {
7878
TrialExpiresAt time.Time `jsonapi:"attr,trial-expires-at,iso8601"`
7979
TwoFactorConformant bool `jsonapi:"attr,two-factor-conformant"`
8080
SendPassingStatusesForUntriggeredSpeculativePlans bool `jsonapi:"attr,send-passing-statuses-for-untriggered-speculative-plans"`
81-
AllowForceDeleteWorkspaces bool `jsonapi:"attr,allow-force-delete-workspaces"`
81+
// Note: This will be false for TFE versions older than v202211, where the setting was introduced.
82+
// On those TFE versions, safe delete does not exist, so ALL deletes will be force deletes.
83+
AllowForceDeleteWorkspaces bool `jsonapi:"attr,allow-force-delete-workspaces"`
8284
}
8385

8486
// Capacity represents the current run capacity of an organization.

0 commit comments

Comments
 (0)