Skip to content

Commit

Permalink
Fixes #25588 - updates content-view-id decription
Browse files Browse the repository at this point in the history
  • Loading branch information
James Jeffers authored and chris1984 committed Sep 11, 2019
1 parent 4436da5 commit dc2cdd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/hammer_cli_katello/content_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@ class AddContentViewVersionCommand < HammerCLIKatello::AddAssociatedCommand
command_name 'add-version'
desc _('Add a content view version to a composite view')

option "--content-view-id", "CONTENT_VIEW_ID",
_("Content view numeric identifier to search by"),
attribute_name: :option_content_view_id,
format: HammerCLI::Options::Normalizers::Number.new

validate_options :before, 'IdResolution' do
if option(:option_content_view_version_version).exist?
any(:option_content_view_id, :option_content_view_name).required
Expand Down

0 comments on commit dc2cdd8

Please sign in to comment.