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

hammer host create doesn't support --lifecycle-environment option

XMLWordPrintable

    • 0
    • False
    • Moderate
    • Sprint 122, Sprint 123, Sprint 124, Sprint 125, Sprint 126, Sprint 127
    • sat-proton
    • None
    • None
    • None
    • None

      Description of problem:
      `hammer host create` doesn't support --lifecycle-environment option, but it should:

      1. hammer host create --help | grep lifecycle
        --lifecycle-environment[-id] VALUE/NUMBER

      Users are forced to use --lifecycle-environment-id instead because the host creation fails with:

      Could not create the host:
      Error: lifecycle_environment not found.

      Version-Release number of selected component (if applicable):
      Satellite 6.11

      Additional info:
      This seems to be specific to `hammer host create` as `hammer host update` works just fine:

      1. hammer lifecycle-environment list --organization-id 1
        --|-------|-------
        ID | NAME | PRIOR
        --|-------|-------
        1 | Library |
        2 | test | Library
        --|-------|-------
      1. hammer host update --lifecycle-environment test --name jsenkyri-rhel8-sat611.sysmgmt.lan --organization-id 1
        Host updated.

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              Cole Higgins Cole Higgins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: