Skip to content

Commit

Permalink
Add a comment to clarify that AllowForceDelete will be false for old …
Browse files Browse the repository at this point in the history
…TFE versions
  • Loading branch information
JarrettSpiker committed Oct 11, 2022
1 parent 874da9f commit 509df39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion organization.go
Expand Up @@ -78,7 +78,9 @@ type Organization struct {
TrialExpiresAt time.Time `jsonapi:"attr,trial-expires-at,iso8601"`
TwoFactorConformant bool `jsonapi:"attr,two-factor-conformant"`
SendPassingStatusesForUntriggeredSpeculativePlans bool `jsonapi:"attr,send-passing-statuses-for-untriggered-speculative-plans"`
AllowForceDeleteWorkspaces bool `jsonapi:"attr,allow-force-delete-workspaces"`
// Note: This will be false for TFE versions older than v202211, where the setting was introduced.
// On those TFE versions, safe delete does not exist, so ALL deletes will be force deletes.
AllowForceDeleteWorkspaces bool `jsonapi:"attr,allow-force-delete-workspaces"`
}

// Capacity represents the current run capacity of an organization.
Expand Down

0 comments on commit 509df39

Please sign in to comment.