Skip to content

Please enable yaml output for server reset-password #715

Closed
@edgecode

Description

@edgecode

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 :-)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions