Bug #14174
closedcontent-view add-repository silently fails if product is not provided
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1223953
Description of problem:
content-view add-repository silently fails if product is not provided
Version-Release number of selected component (if applicable):
Sat 6.1 GA Snap 5
How reproducible:
Always
Steps to Reproduce:
hammer> content-view add-repository --name=sat6toolscustomrepo1 --organization-id=1 --name=rhel7partialcv
The repository has been associated
But looking at content-view info shows that the repo is not associated:
hammer> content-view info --name=rhel7partialcv --organization-id=1ID: 4
...
Yum Repositories:
1) ID: 2
Name: Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
Label: Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server
Docker Repositories:
Puppet Modules:
...
Actual results:
If product option is not provided, Repo is not associated as shown above.
Expected results:
If product option is not provided, show an error message and not a success message.
Additional info:
Alternatively, passing product option makes this scenario work fine:
hammer> content-view add-repository --name=sat6toolscustomrepo1 --organization-id=1 --name=rhel7partialcv --product=sat6toolscustom
The repository has been associated
hammer> content-view info --name=rhel7partialcv --organization-id=1ID: 4
Name: rhel7partialcv
...
Yum Repositories:
1) ID: 2
Name: Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
Label: Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server
2) ID: 16
Name: sat6toolscustomrepo1
Label: sat6toolscustomrepo1
...
Updated by The Foreman Bot over 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Brad Buckingham
- Pull request https://github.com/Katello/hammer-cli-katello/pull/364 added
Updated by Brad Buckingham over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|2431f2a26897d23c5ee4c355d706f16da592e7f8.
Updated by Eric Helms over 8 years ago
- Translation missing: en.field_release set to 86