Skip to content

hcloud .. list -o noheader produces an unecessary blank line #1508

Open

Description

@jpmens

Thank you for this utility, which is very useful to me!

I note that the list subcommand produces an empty line when invoked with -o noheader:

$ hcloud version
hcloud 1.68.0-dev

$ hcloud primary-ip list -o noheader | od -cb
0000000   \n
          012
0000001

$ hcloud servers list -o noheader | od -cb
0000000   \n
          012
0000001

$ hcloud servers list -o noheader | wc -l
    1

While this isn't a bug, I use the latter to count the current active hosts, and as can be seen, there aren't actually any. :-)

Activity

  1. jpmens commented on Oct 10, 2026

    @jpmens
    Author

    I probably wouldn't have mentioned it if this had occurred to me earlier:

    $ hcloud servers list -o json | jq length
    0

    :-)

  2. phm07 commented on Oct 23, 2026

    @phm07
    Contributor

    Thanks for your bug report. #1524 should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions