Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19861

'hammer erratum list' Gives 'Error: environment not found' If '--lifecycle-environment' Is Used.

XMLWordPrintable

    • 0
    • False
    • Low
    • Sprint 122, Sprint 123, Sprint 124, Sprint 125, Sprint 126, Sprint 127
    • None
    • None
    • None
    • None

      Description of problem:
      Executing:

      1. hammer erratum list \
        --organization-id=1 \
        --content-view=rhel77_e4s \
        --lifecycle-environment=Development \
        --errata-restrict-installable=yes

      ...results in this output:

      Error: environment not found.

      (I get the same error if I specify "Library".) Yet, this slightly different command:

      1. hammer erratum list \
        --organization-id=1 \
        --content-view=rhel77_e4s \
        --lifecycle-environment-id=2 \
        --errata-restrict-installable=yes

      ...succeeds. FYI, lifecycle environment ID #2 is "Development":

      1. hammer lifecycle-environment list \
        --organization-id=1
        --|-----------|-------
        ID | NAME | PRIOR
        --|-----------|-------
        2 | Development | Library
        1 | Library |
        --|-----------|-------

      Version-Release number of selected component (if applicable):
      tfm-rubygem-hammer_cli-2.5.1-1.el7sat.noarch

          There are no Sub-Tasks for this issue.

              rhn-engineering-lfu Lucy Fu
              jira-bugzilla-migration RH Bugzilla Integration
              David Moore David Moore (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: