Actions
Bug #5070
closedCan't add repos to a content view by name
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
????
Updated by Justin Sherrill almost 11 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.
Updated by Justin Sherrill almost 11 years ago
- Priority changed from Urgent to High
Updated by Mike McCune almost 11 years ago
- Subject changed from Urgent: Can't add repos to a content view to Can't add repos to a content view
Updated by David Davis almost 11 years ago
FYI, this worked a couple weeks ago:
hammer content-view add-repository --id 2 --repository-id 1
Updated by David Davis almost 11 years ago
Here's the PR that added the name option to commands (I think):
Updated by David Davis almost 11 years ago
I see now that we're getting the name option from HammerCLIForeman. Will open a PR.
Updated by David Davis almost 11 years ago
Updated by David Davis almost 11 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
Updated by David Davis almost 11 years ago
- Status changed from New to Assigned
- Assignee changed from Justin Sherrill to David Davis
Updated by David Davis almost 11 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied in changeset hammer-cli-katello|commit:b6e2cd3a52c9d7e4c0106d2f91d3f91695041c5a.
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13
Actions