File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,13 @@ type AttrLike interface {
4545 IsOptional () bool
4646 IsRequired () bool
4747 IsSensitive () bool
48+ IsWriteOnly () bool
4849 GetDeprecationMessage () string
4950 GetDescription () string
5051 GetMarkdownDescription () string
5152 GetType () attr.Type
5253}
5354
54- type AttrLikeWithWriteOnly interface {
55- AttrLike
56- IsWriteOnly () bool
57- }
58-
5955func FromProviderAttribute (x pschema.Attribute ) Attr {
6056 return FromAttrLike (x )
6157}
Original file line number Diff line number Diff line change @@ -142,11 +142,7 @@ func (s *attrSchema) Sensitive() bool {
142142}
143143
144144func (s * attrSchema ) WriteOnly () bool {
145- schema , ok := s .attr .(pfutils.AttrLikeWithWriteOnly )
146- if ok {
147- return schema .IsWriteOnly ()
148- }
149- return false
145+ return s .attr .IsWriteOnly ()
150146}
151147
152148func (* attrSchema ) SetElement (config interface {}) (interface {}, error ) {
You can’t perform that action at this time.
0 commit comments