Project

General

Profile

Feature #3246

Return id of created object in create methods

Added by Martin Bacovsky over 9 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:
Red Hat JIRA:

Description

API returns the created object, would be nice, when the id and name is encapsulated in success response.
Even nicer when the response support --csv like

Architecture successfully created,1,i686

Related issues

Related to Hammer CLI - Feature #3734: Allow user info to use --login as an optional argumentClosed2013-11-22

Associated revisions

Revision d08a9790 (diff)
Added by Tomáš Strachota over 9 years ago

fixes #3246 - printing id and names of created resources

- output turned back to an object
- print_message now takes the message and arguments, which is the created/updated
resource in case of write commands
- csv output adapter check if there is name or id available and prints it

Revision 5a77620d
Added by Tomáš Strachota over 9 years ago

Merge pull request #53 from tstrachota/messages

fixes #3246 - printing id and names of created resources

Revision cf4087db (diff)
Added by Tomas Strachota over 9 years ago

refs #3246 - fixes in commands to match output changes

History

#1 Updated by Martin Bacovsky over 9 years ago

  • Status changed from New to Assigned
  • Assignee set to Martin Bacovsky

As part of this add logging of results returned from foreman

#2 Updated by Dominic Cleal over 9 years ago

  • Project changed from Foreman to Hammer CLI
  • Category deleted (44)

#3 Updated by Greg Sutcliffe over 9 years ago

  • Target version set to 1.15.0

#4 Updated by Greg Sutcliffe over 9 years ago

  • Target version deleted (1.15.0)

#5 Updated by Martin Bacovsky over 9 years ago

  • Target version set to 1.10.0

#6 Updated by Tomáš Strachota over 9 years ago

  • Assignee changed from Martin Bacovsky to Tomáš Strachota

#7 Updated by Tomáš Strachota over 9 years ago

  • Status changed from Assigned to Ready For Testing

#8 Updated by Anonymous over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Applied in changeset foreman:hammer-cli|commit:d08a97901c3cc338b1275d671eac91bed9a926a2.

#9 Updated by Dominic Cleal over 9 years ago

  • Related to Feature #3734: Allow user info to use --login as an optional argument added

Also available in: Atom PDF