Project

General

Profile

Actions

Bug #5070

closed

Can't add repos to a content view by name

Added by Mike McCune about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

is this operator error?

# hammer content-view add-repository --organization-id=DemoOrg --name=RHEL6 --repository="Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server" 
Could not add repository:
  Error: Unrecognised option '--organization-id'

  See: 'hammer content-view add-repository --help'

# hammer content-view add-repository  --name=RHEL6 --repository="Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server" 
Could not add repository:
  One of parameters [ organization_id ] required but not specified.

tried with _

# hammer content-view add-repository --organization_id=DemoOrg --name=RHEL6 --repository="Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server" 
Could not add repository:
  Error: Unrecognised option '--organization_id'

  See: 'hammer content-view add-repository --help'

help shows:

# hammer content-view add-repository --help
Usage:
    hammer content-view add-repository [OPTIONS]

Options:
    --id ID                       resource id
    --name NAME                   resource name
    --repository REPOSITORY
    --repository-id REPOSITORY_ID
    -h, --help                    print help

????

Actions #1

Updated by Mike McCune about 10 years ago

  • Description updated (diff)
Actions #2

Updated by Justin Sherrill about 10 years ago

It appears using the --name=RHEL6 is broken. If you use --id=3 (or whatever the id is of that content view) along with --repository-id=5 it seems to work. Still digging.

Actions #3

Updated by Justin Sherrill about 10 years ago

  • Priority changed from Urgent to High
Actions #4

Updated by Eric Helms about 10 years ago

  • Category set to Hammer
Actions #5

Updated by Mike McCune about 10 years ago

  • Subject changed from Urgent: Can't add repos to a content view to Can't add repos to a content view
Actions #6

Updated by David Davis about 10 years ago

FYI, this worked a couple weeks ago:

hammer content-view add-repository  --id 2 --repository-id 1
Actions #7

Updated by David Davis about 10 years ago

Here's the PR that added the name option to commands (I think):

Actions #8

Updated by David Davis about 10 years ago

I see now that we're getting the name option from HammerCLIForeman. Will open a PR.

Actions #10

Updated by David Davis about 10 years ago

  • Subject changed from Can't add repos to a content view to Can't add repos to a content view by name
  • Priority changed from High to Low
Actions #11

Updated by David Davis about 10 years ago

  • Priority changed from Low to Normal
Actions #12

Updated by David Davis about 10 years ago

  • Status changed from New to Assigned
  • Assignee changed from Justin Sherrill to David Davis
Actions #13

Updated by David Davis about 10 years ago

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

Applied in changeset hammer-cli-katello|commit:b6e2cd3a52c9d7e4c0106d2f91d3f91695041c5a.

Actions #14

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF