Project

General

Profile

Actions

Bug #27508

closed

Hammer package list with environment flag uses wrong api

Added by Chris Roberts over 4 years ago. Updated over 4 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 #1

Updated by Chris Roberts over 4 years ago

  • Target version set to Katello Backlog
  • Triaged changed from No to Yes
Actions #2

Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Partha Aji
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/689 added
Actions #3

Updated by Partha Aji over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Justin Sherrill over 4 years ago

  • Target version deleted (Katello Backlog)
  • Triaged changed from Yes to No
Actions #5

Updated by Chris Roberts over 4 years ago

  • Target version set to Katello 3.13.0
  • Found in Releases Katello 3.12.3 added
  • Found in Releases deleted (Katello 3.12.0)
Actions #6

Updated by Jonathon Turel over 4 years ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF