[#42] Change valid time format for lifecycle configuration
All checks were successful
/ DCO (pull_request) Successful in 1m9s
/ Vulncheck (pull_request) Successful in 1m15s
/ Lint (pull_request) Successful in 2m16s
/ Tests (1.21) (pull_request) Successful in 3m3s
/ Tests (1.22) (pull_request) Successful in 1m24s
/ Builds (1.21) (pull_request) Successful in 1m20s
/ Builds (1.22) (pull_request) Successful in 3m30s
All checks were successful
/ DCO (pull_request) Successful in 1m9s
/ Vulncheck (pull_request) Successful in 1m15s
/ Lint (pull_request) Successful in 2m16s
/ Tests (1.21) (pull_request) Successful in 3m3s
/ Tests (1.22) (pull_request) Successful in 1m24s
/ Builds (1.21) (pull_request) Successful in 1m20s
/ Builds (1.22) (pull_request) Successful in 3m30s
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
ccaf048b9d
commit
2abb9b38cc
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ func checkLifecycleConfiguration(cfg *data.LifecycleConfiguration) error {
|
|||
return fmt.Errorf("expiration days must be a positive integer: %d", *rule.Expiration.Days)
|
||||
}
|
||||
|
||||
if _, err := time.Parse("2006-01-02T15:04:05.000Z", rule.Expiration.Date); rule.Expiration.Date != "" && err != nil {
|
||||
if _, err := time.Parse("2006-01-02T15:04:05Z", rule.Expiration.Date); rule.Expiration.Date != "" && err != nil {
|
||||
return fmt.Errorf("invalid value of expiration date: %s", rule.Expiration.Date)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue