teleport/tool
Steven Martin 498983315f
handle empty lists for yaml and json formatted lists in tctl (#33547)
* handle empty lists for yaml and json lists in tctl

* users list nil check

* move order of empty list assignment

* check for nil value for resources json and yaml output

* remove duplicate resources() call

* JSON and YAML empty handling

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Apply suggestions from code review

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* change to use utils

* fix test

* fix tokens yaml testing

* addressed comments

* WriteJSON used by enterprise code, restored

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-10-18 03:04:10 +00:00
..
common show discovered name in non-verbose request search (#30196) 2023-08-09 18:22:12 +00:00
tbot [Buddy 30860] Added --insecure flag to tbot (#31093) 2023-09-11 08:16:18 +00:00
tctl handle empty lists for yaml and json formatted lists in tctl (#33547) 2023-10-18 03:04:10 +00:00
teleport feat: IAM permissions for BYOBucket (#33416) 2023-10-17 19:42:41 +00:00
tsh handle empty lists for yaml and json formatted lists in tctl (#33547) 2023-10-18 03:04:10 +00:00