Skip to content

Commit

Permalink
Update octopusdeploy_framework/schemas/lifecycle.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Pearce <[email protected]>
  • Loading branch information
HuyPhanNguyen and benPearce1 authored Aug 19, 2024
1 parent fb531ce commit 13bf5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octopusdeploy_framework/schemas/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (v retentionPolicyValidator) ValidateObject(ctx context.Context, req valida

if !retentionPolicy.Unit.IsNull() {
unit := retentionPolicy.Unit.ValueString()
if unit != "Days" && unit != "Items" {
if !strings.EqualFold(unit, "Days") && !strings.EqualFold(unit,"Items") {

Check failure on line 205 in octopusdeploy_framework/schemas/lifecycle.go

View workflow job for this annotation

GitHub Actions / build

undefined: strings

Check failure on line 205 in octopusdeploy_framework/schemas/lifecycle.go

View workflow job for this annotation

GitHub Actions / build

undefined: strings
resp.Diagnostics.AddAttributeError(
req.Path.AtName("unit"),
"Invalid retention policy unit",
Expand Down

0 comments on commit 13bf5c7

Please sign in to comment.