digitalocean / doctl

The official command line interface for the DigitalOcean API.
https://docs.digitalocean.com/reference/doctl/
Apache License 2.0
3.26k stars 397 forks source link

Missed domain ID in compute domain command output #227

Closed pinepain closed 7 years ago

pinepain commented 7 years ago

It looks like all compute domain commands family misses domain ID in their output:

Env: OS: macOS 10.12.4 doctl: 1.6.0-release (via homebrew)

$ doctl compute domain list
Domain         TTL
foo.com    1800
bar.net    1800

$doctl compute domain get foo.bar
Domain         TTL
foo.bar    1800

Also, compute domain create returns invalid TTL:

doctl compute domain create baz.org --ip-address=127.0.0.1
Domain         TTL
baz.org    0

Having domain ID listed is vital, my use case is to import domain into existent terraform infrastructure.

pinepain commented 7 years ago

Sorry, just trying to get used to doctl. Domain name is sufficient ID as it is.