Skip to content

Commit

Permalink
Make status read-only since the update deployment endpoint doesn't mo…
Browse files Browse the repository at this point in the history
…dify it
  • Loading branch information
danafallon committed Aug 6, 2024
1 parent 812a174 commit d453169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ Artie Deployment resource
### Optional

- `destination_uuid` (String)
- `status` (String)

### Read-Only

- `status` (String)
- `uuid` (String)

<a id="nestedatt--destination_config"></a>
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/deployment_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (r *DeploymentResource) Schema(ctx context.Context, req resource.SchemaRequ
Attributes: map[string]schema.Attribute{
"uuid": schema.StringAttribute{Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}},
"name": schema.StringAttribute{Required: true},
"status": schema.StringAttribute{Computed: true, Optional: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}},
"status": schema.StringAttribute{Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}},
"destination_uuid": schema.StringAttribute{Computed: true, Optional: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}},
"source": schema.SingleNestedAttribute{
Required: true,
Expand Down

0 comments on commit d453169

Please sign in to comment.