Actions
Bug #27508
closedHammer package list with environment flag uses wrong api
Difficulty:
easy
Triaged:
Yes
Description
When doing
- 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