Project

General

Profile

Bug #8547

Promoting CVs with hammer results in error when referencing environment by name

Added by Partha Aji over 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1165642
Description of problem:
When promoting a content view version using hammer, if the lifecycle environment to which we are promoting is referenced by name, we get an error. If we promote by lifecycle environment ID, then the promotion works correctly.

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

How reproducible:
Every time

Steps to Reproduce:
1. Check what lifecycle environments we have available:
  1. lifecycle-environment list --organization "Default_Organization"
    ---|---------|--------
    ID | NAME | PRIOR
    ---|---------|--------
    2 | Crash | Library
    1 | Library |
    ---|---------|--------
2. Promote a CV version by name:
  1. hammer content-view version promote --content-view "acme-7.0.0" --organization "Default_Organization" --lifecycle-environment "Crash" --id 7

Actual results:
Could not promote the content view:
Error: environment found more than once

Expected results:
Correct promotion.

Additional info:
Promotion by lifecycle environment ID works fine:
  1. hammer content-view version promote --content-view "acme-7.0.0" --organization "Default_Organization" --lifecycle-environment-id 2 --id 7
    [.....................................................................................................................................................] [100%]
    Task 09187308-173c-4aff-8d46-4b4c6a1c8f49: success

Associated revisions

Revision 1afcd902 (diff)
Added by David Davis over 8 years ago

Fixes #8547 - Showing error when no env params

Revision d5f64d32
Added by David Davis about 8 years ago

Merge pull request #258 from daviddavis/temp/20141202134530

Fixes #8547 - Showing error when no env params

History

#1 Updated by Eric Helms over 8 years ago

  • Target version set to 62
  • Legacy Backlogs Release (now unused) set to 14
  • Triaged changed from No to Yes

#2 Updated by Eric Helms about 8 years ago

  • Target version changed from 62 to 63

#3 Updated by Eric Helms about 8 years ago

  • Legacy Backlogs Release (now unused) changed from 14 to 23

#4 Updated by David Davis about 8 years ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/258 added
  • Pull request deleted ()

#5 Updated by David Davis about 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF