Project

General

Profile

Bug #13636

unable to remove 'version' parameter from command

Added by Chris Duryee over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

In the content view version command, there is a '--version' parameter that is unable to be removed via 'without':


Usage:
    hammer content-view version export [OPTIONS]

Options:
 --export-to-iso EXPORT_TO_ISO Export to ISO format
                               One of true/false, yes/no, 1/0.
 --id ID                       Content view version identifier
 --iso-mb-size ISO_MB_SIZE     maximum size of each ISO in MB
                               One of true/false, yes/no, 1/0.
 --since SINCE                 Optional date of last export (ex: 2010-01-01T12:00:00Z)
 --version VERSION             Content view version number
 -h, --help                    print help

Ideally, we would be able to strip the 'version' argument out via build_options.

History

#1 Updated by Chris Duryee over 3 years ago

tom fixed this in https://github.com/Katello/hammer-cli-katello/pull/346/

He added:

      build_options do |o|
         o.expand(:all).including(:environments, :content_views, :organizations)
      end

This added "content view name" and other fields that made "version" make sense.

#2 Updated by Adam Price over 3 years ago

  • Pull request https://github.com/Katello/hammer-cli-katello/pull/346 added

#3 Updated by Adam Price over 3 years ago

  • Status changed from New to Closed

#4 Updated by Tomáš Strachota almost 3 years ago

  • Project changed from Hammer CLI to Katello
  • Category changed from 74 to Hammer
  • Pull request deleted (https://github.com/Katello/hammer-cli-katello/pull/346)

#5 Updated by Justin Sherrill almost 3 years ago

  • Legacy Backlogs Release (now unused) set to 162

Also available in: Atom PDF