Bug #22498
closedImprove help and error messages when adding CVs to a CCV
Description
This came from discussion in https://bugzilla.redhat.com/show_bug.cgi?id=1309944
trying to add a different version of a CV that is already in the CCV, fails, which is I suppose correct but the message could be more informative:
~]# hammer content-view add-version --id 3 --content-view test2 --content-view-version-id 7
Could not add version:
Validation failed: Content view components is invalid, Content view components is invalid
Also the help descriptions could indicate which options relate to ccv and which to cv being added, currently we have:
~]# hammer content-view add-version -h
Usage:
hammer content-view add-version [OPTIONS]
Options:
--content-view CONTENT_VIEW_NAME Content view name to search by
--content-view-id CONTENT_VIEW_ID content view numeric identifier
--content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
--content-view-version-id CONTENT_VIEW_VERSION_ID Content view version identifier
--id ID content view numeric identifier
--name NAME Content view name to search by
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7610 added
Updated by Michael Johnson over 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|0ff1b88f3800c9064c1fd99a4d52a842973845b1.
Updated by The Foreman Bot over 6 years ago
- Pull request https://github.com/Katello/katello/pull/7708 added