Skip to content

Commit ca07f50

Browse files
committed
fixing BoolOption schema to work as computed values
1 parent 7416542 commit ca07f50

File tree

6 files changed

+1963
-1993
lines changed

6 files changed

+1963
-1993
lines changed

api/proto/teleport/legacy/types/types.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -3090,7 +3090,7 @@ message RoleOptions {
30903090
deprecated = true,
30913091
(gogoproto.nullable) = true,
30923092
(gogoproto.jsontag) = "port_forwarding,omitempty",
3093-
(gogoproto.customtype) = "NullBoolOption"
3093+
(gogoproto.customtype) = "BoolOption"
30943094
];
30953095

30963096
// CertificateFormat defines the format of the user certificate to allow

api/types/role.go

-4
Original file line numberDiff line numberDiff line change
@@ -1599,10 +1599,6 @@ type BoolOption struct {
15991599
Value bool
16001600
}
16011601

1602-
// NullBoolOption is an alias for BoolOption that allows values to remain undefined within the
1603-
// terraform provider.
1604-
type NullBoolOption = BoolOption
1605-
16061602
// NewBoolOption returns Bool struct based on bool value
16071603
func NewBoolOption(b bool) *BoolOption {
16081604
v := BoolOption{Value: b}

0 commit comments

Comments
 (0)