Skip to content

Commit

Permalink
fix validator
Browse files Browse the repository at this point in the history
  • Loading branch information
aliotta committed Apr 25, 2024
1 parent bbc624e commit 4284ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/schemas/scaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func HibernationOverrideResourceSchemaAttributes() map[string]resourceSchema.Att
"is_hibernating": resourceSchema.BoolAttribute{
Optional: true,
Validators: []validator.Bool{
boolvalidator.AlsoRequires(path.MatchRoot("override_until")),
boolvalidator.AlsoRequires(path.MatchRelative().AtParent().AtName("override_until")),
},
},
"override_until": resourceSchema.StringAttribute{
Expand Down

0 comments on commit 4284ae7

Please sign in to comment.