Project

General

Profile

Actions

Bug #3954

closed

Info commands must always use IDs instead of names in api calls

Added by Tomáš Strachota almost 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Info commands allow to search resources by both --id and --name. API currently allows to search by either of them, which does not always work as expected. See #3876 for details.
When the --name is passed we need to perform search by name first and then use the found ID in the api show call.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #3876: API find_resource by name finds by ID instead when first character of name is a digitClosedJoseph Magen12/13/2013Actions
Actions

Also available in: Atom PDF