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

cli: Fix kv import for keys with trailing slash #11888

Closed
wants to merge 1 commit into from

Conversation

blake
Copy link
Member

@blake blake commented Dec 18, 2021

Correctly import keys names that end in a trailing slash.

Fixes #10906

Correctly import keys names that end in a trailing slash.

Fixes #10906
@blake blake added the theme/cli Flags and documentation for the CLI interface label Dec 18, 2021
@blake blake self-assigned this Dec 18, 2021
Copy link
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this fix! I see it;s still a draft, but I thought I'd have a look.

I have no idea how this should work, but I think we should be explicit about it somewhere. I glanced at https://www.consul.io/commands/kv/import and didn't see much detail about it, but maybe I missed it.

As part of this fix I think we'll need to clearly document how trailing slashes are expected to work for this command. And hopefully we can confirm they work consistently for other commands. I haven't used kv much, so I'm not really sure what other kv commands do with a trailing slash.

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

This pull request has been automatically flagged for inactivity because it has not been acted upon in the last 60 days. It will be closed if no new activity occurs in the next 30 days. Please feel free to re-open to resurrect the change if you feel this has happened by mistake. Thank you for your contributions.

@github-actions github-actions bot added the meta/stale Automatically flagged for inactivity by stalebot label Mar 8, 2022
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot removed the meta/stale Automatically flagged for inactivity by stalebot label Mar 13, 2022
@blake
Copy link
Member Author

blake commented Aug 1, 2022

This issue was fixed by PR #13939.

@blake blake closed this Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/cli Flags and documentation for the CLI interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

consul kv import @a-file.json change behavior since 1.10.0
3 participants