Skip to content

Commit

Permalink
Force new manager resource when changing type
Browse files Browse the repository at this point in the history
The API started misbehaving when changing type and setting properties
from the previous type to null.

The API client is very simple and always sends all of the possible
properties for all manager types.

Forcing the creation of a new manager when changing the type avoids
these edge cases and inconsistencies, keeping the API client simple.
  • Loading branch information
PChambino committed Nov 21, 2021
1 parent 7c9e182 commit 8088a7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/manager/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func Resource() *schema.Resource {
"type": &schema.Schema{
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{
"Manager::Worker::HireFire::JobQueue",
"Manager::Web::Logplex::Load",
Expand Down

0 comments on commit 8088a7d

Please sign in to comment.