Skip to content

Commit

Permalink
ephemeral: add write-only attribute to proto to schema conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Dec 4, 2024
1 parent b4a6a12 commit 0b76bb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/plugin/convert/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func ProtoToConfigSchema(b *proto.Schema_Block) *configschema.Block {
Computed: a.Computed,
Sensitive: a.Sensitive,
Deprecated: a.Deprecated,
WriteOnly: a.WriteOnly,
}

if err := json.Unmarshal(a.Type, &attr.Type); err != nil {
Expand Down
1 change: 1 addition & 0 deletions internal/plugin6/convert/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func ProtoToConfigSchema(b *proto.Schema_Block) *configschema.Block {
Computed: a.Computed,
Sensitive: a.Sensitive,
Deprecated: a.Deprecated,
WriteOnly: a.WriteOnly,
}

if a.Type != nil {
Expand Down

0 comments on commit 0b76bb3

Please sign in to comment.