-
Notifications
You must be signed in to change notification settings - Fork 80
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
Please enable yaml output for server reset-password #715
Comments
Thanks for your suggestion! It looks like a useful addition to me, I'll work on an implementation. |
I added the feature in #716 Can you please confirm that it works for you with
|
Wow, that was fast :-)
I will. Thanks again, phm07! |
Tried to test, but failed due to my non-existant GO skills: I am on a Ubuntu 22.04 machine. When I run
I tried |
I was able to get things working with go 1.22 :-) Either I did not get the env vars or go.mod concept of go. But back to business: @phm07 Thanks again for your fast implementation of this small, but useful hcloud enhancment. |
Yea, Great that it works for you! I will re-open the issue until the PR is merged, @phm07 will be back next week to take care of that. |
This PR adds the ability to output the root password after a password reset in JSON or YAML format. Closes #715
🤖 I have created a release *beep* *boop* --- ## [1.43.0](v1.42.0...v1.43.0) (2024-04-03) ### Features * allow deletion of multiple resources at once ([#719](#719)) ([3b896fe](3b896fe)) * improve missing argument error messages ([#711](#711)) ([e7f9e74](e7f9e74)) * **server:** allow JSON & YAML output in reset-password ([#716](#716)) ([373287b](373287b)), closes [#715](#715) ### Bug Fixes * removing last rule from firewall fails with invalid_input error ([#696](#696)) ([acab17c](acab17c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
TL;DR
$ hcloud version
hcloud 1.42.0
$ hcloud server reset-password --help
No option for YAML output :-(
Do I find the password in the server's description ... no:
$ hcloud server describe -o yaml SERVER_ID | grep -i pass
I have to resort to parsing the output, e.g.
$ hcloud server reset-password SERVER_ID | tail -n 1 | awk '{ print $NF }'
This is too fragile.
If the output format ever changes, code breaks.
Expected behavior
$ hcloud server reset-password --output yaml SERVER_ID
Thx :-)
The text was updated successfully, but these errors were encountered: