Skip to content
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

tctl nodes format regression #1846

Closed
russjones opened this issue Apr 4, 2018 · 0 comments
Closed

tctl nodes format regression #1846

russjones opened this issue Apr 4, 2018 · 0 comments

Comments

@russjones
Copy link
Contributor

russjones commented Apr 4, 2018

In Teleport 2.4.1, the output of tctl nodes add --format=json --roles=node was a list that looked like this:

["token"]

This is becausetctl nodes add ... used to support a hidden and undocumented--count flag that could return multiple tokens.

Since then the --count flag has been removed and tctl nodes add ... always return a single token and tctl started returning something like this:

"token"

However, customers have built automation tooling around tctl that relies on tctl nodes add --format=json returning a list and we can not break users tooling. Therefore tctl should always return a list even though it only returns a single token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant