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

Also available in: Atom PDF