mantl / consul-cli

Command line interface to Consul HTTP API
Apache License 2.0
251 stars 67 forks source link

acl list returns two times #31

Closed fjromerom closed 8 years ago

fjromerom commented 8 years ago

ACL list returns two times same result.

consul-cli acl list --token='MASTER TOKEN'

[ { "CreateIndex": 4, "ModifyIndex": 4, "ID": "MASTER TOKEN", "Name": "Master Token", "Type": "management", "Rules": "" }, { "CreateIndex": 3, "ModifyIndex": 3, "ID": "anonymous", "Name": "Anonymous Token", "Type": "client", "Rules": "" } ][ { "CreateIndex": 4, "ModifyIndex": 4, "ID": "MASTER TOKEN", "Name": "Master Token", "Type": "management", "Rules": "" }, { "CreateIndex": 3, "ModifyIndex": 3, "ID": "anonymous", "Name": "Anonymous Token", "Type": "client", "Rules": "" } ]

Is this a bug?

ChrisAubuchon commented 8 years ago

It is. https://github.com/CiscoCloud/consul-cli/releases/tag/v0.3.1 has the fix.