Project

General

Profile

Actions

Bug #27508

closed

Hammer package list with environment flag uses wrong api

Added by Chris Roberts over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When doing

  1. hammer package list --help we see this option:

--environment ENVIRONMENT_NAME Lifecycle environment name to search by

here is mine:

[vagrant@centos7-hammer-devel hammer-cli-katello]$ hammer lifecycle-environment list
---|---------|--------
ID | NAME | PRIOR
---|---------|--------
2 | dev | Library
1 | Library |
---|---------|--------

but the command calls out to foreman instead of katello

[ INFO 2019-08-02T15:47:41 API] GET /api/environments

so when i do this

[vagrant@centos7-hammer-devel hammer-cli-katello]$ hammer package list --environment Library
Error: environment not found.

Actions

Also available in: Atom PDF