Project

General

Profile

Bug #4488

Using --show-ids does not display the ID for the created resource

Added by Og Maciel about 5 years ago. Updated about 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

I believe that if I use --show-ids while creating a new resource via the CLI, I should get the ID for the newly created resource displayed in the output:

# hammer -v --show-ids organization create --name "NY Data Store" 
Organization created

Am I missing something?

History

#1 Updated by Tomáš Strachota about 5 years ago

--show-ids is meant to be used for displaying ids of associated resources in show/list actions. In perfect world all the resources are searchable by their names and associated ids kind of pollute the output.

Please use --csv to display ids and names of just created items.

#2 Updated by Og Maciel about 5 years ago

As I misunderstood what the feature works, please feel free to close it.

#3 Updated by Dominic Cleal about 5 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF