-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
vault ssh may print misleading warning message #19785
Comments
Thanks for filing this ticket, and welcome to HashiCorp Vault community. The warning messages are not misleading as it informs the user which input arguments are not considered flags. Such a warning is not printed if you pass in the
I am going to close this issue for now. Please feel free to open a new ticket or if you have further concerns please let us know and we reopen the issue for further discussions. |
Hi @hghaf099 , I think this issue should be reopened, as it is reporting a genuine defect: The This is quite unlike most other commands, where option-like things occurring after positional arguments are often a mistake. It doesn't make sense to try to provide users with a helpful wrapper for Vault SSH operations, but then have it nag them with spurious warnings when they use it in the intended fashion. |
This issue should have been fixed. I am closing this, please feel free to reopen this issue or open a new one for further discussions. |
Describe the bug
#16683 changed the way vault generates warnings on potential errors regarding flags. This has a side effect when using
vault ssh
which now generates a (unhelpful) warningTo Reproduce
Steps to reproduce the behavior:
Expected behavior
No warning printed
Environment:
vault status
): 1.11.4vault version
): v1.13.0Additional context
Maybe stop parsing flags after the double dash. Workaround:
The text was updated successfully, but these errors were encountered: