Skip to content

Commit

Permalink
fix: use "Agent ID" instead of "Agent Name" in CLI.
Browse files Browse the repository at this point in the history
We previously used "id" or "agent_id" in the JSON output but "Agent
Name" in CSV and plaintext output. Use "Agent ID" in all cases now, for
consistency with what this value is called elsewhere.
  • Loading branch information
neilconway committed May 27, 2020
1 parent 0978df0 commit d415758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/determined_cli/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def list_agents(args: argparse.Namespace) -> None:
print(json.dumps(agents, indent=4))
return

headers = ["Agent Name", "Registered Time", "Slots", "Containers", "Label"]
headers = ["Agent ID", "Registered Time", "Slots", "Containers", "Label"]
values = [a.values() for a in agents]

render.tabulate_or_csv(headers, values, args.csv)
Expand Down Expand Up @@ -84,7 +84,7 @@ def list_slots(args: argparse.Namespace) -> None:
print(json.dumps(slots, indent=4))
return

headers = ["Agent Name", "Slot ID", "Enabled", "Task ID", "Task Name", "Type", "Device"]
headers = ["Agent ID", "Slot ID", "Enabled", "Task ID", "Task Name", "Type", "Device"]
values = [s.values() for s in slots]

render.tabulate_or_csv(headers, values, args.csv)
Expand Down

0 comments on commit d415758

Please sign in to comment.