Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of CLI to take days as a unit of time into release/1.11.x #20512

Conversation

hc-github-team-secure-vault-core
Copy link
Contributor

Backport

This PR is auto-generated from #20477 to be assessed for backporting due to the inclusion of the label backport/1.11.x.

The below text is copied from the body of the original PR.


For an example: vault token create -policy=mypolicy -ttl=1d
fails with error:
invalid value "1d" for flag -ttl: time: unknown unit "ds" in duration "1ds"

Currently, the CLI uses time.ParseDuration(appendDurationSuffix(s)) instead of parseutil.ParseDurationSecond(s). The fix is to use the latter instead.

Addresses #19815


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/fix-ttl-flad-for-day-durations/absolutely-suitable-sparrow branch 2 times, most recently from 3c43dc0 to 4ff45aa Compare May 4, 2023 15:03
@hghaf099 hghaf099 enabled auto-merge (squash) May 4, 2023 15:36
@hghaf099 hghaf099 merged commit 81119d6 into release/1.11.x May 4, 2023
@hghaf099 hghaf099 deleted the backport/fix-ttl-flad-for-day-durations/absolutely-suitable-sparrow branch May 4, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants