Issue #582
closedformat of repo fields list for pulp-admin --fields option
Description
Description of problem:
--fields option for pulp-admin doesn't except names of repo's fields as they are written in the output, i.e. with capital letters and spaces
1) pulp-admin rpm repo list --fields "id,description,display name" doesn't work
but
pulp-admin rpm repo list --fields "id,description,display_name" is ok
2) pulp-admin rpm repo list --fields 'Id,Description' doesn't work
but
pulp-admin rpm repo list --fields 'id,description' is ok
Suggestion: It's not obvious that repo's fields should be written in lowcase and with underscore instead of space. If it's difficult to fix, let's put an example in --help output:
pulp-admin repo list --help
Command: list
Description: lists repositories on the Pulp server
Available Arguments:
--summary, -s - if specified, a condensed view with just the repository ID and
name is displayed
--details - if specified, detailed configuration information is displayed
for each repository
--fields - comma-separated list of repository fields, for example
"id,description,display_name,content_unit_counts"; if
specified, only the given fields will displayed
Version-Release number of selected component (if applicable):
rpm -qa | grep pulp-server
pulp-server-2.5.0-0.8.beta.fc20.noarch
How reproducible:
always
Steps to reproduce:
pulp-admin repo list
--------------------------------------------------------------------
Repositories
--------------------------------------------------------------------
Id: gena
Display Name: gena
Description: None
Content Unit Counts:
pulp-admin repo list --help
Command: list
Description: lists repositories on the Pulp server
Available Arguments:
--summary, -s - if specified, a condensed view with just the repository ID and
name is displayed
--details - if specified, detailed configuration information is displayed
for each repository
--fields - comma-separated list of repository fields; if specified, only
the given fields will displayed
pulp-admin repo list --fields "id,description"
--------------------------------------------------------------------
Repositories
--------------------------------------------------------------------
Id: gena
Description: None
pulp-admin repo list --fields "id,description,display name"
--------------------------------------------------------------------
Repositories
--------------------------------------------------------------------
Id: gena
Description: None
pulp-admin repo list --fields "id,description,display_name"
--------------------------------------------------------------------
Repositories
--------------------------------------------------------------------
Id: gena
Description: None
Display Name: gena
pulp-admin repo list --fields "id,description,display_name,content_unit_counts"
--------------------------------------------------------------------
Repositories
--------------------------------------------------------------------
Id: gena
Content Unit Counts:
Description: None
Display Name: gena
pulp-admin repo list --fields "Id,description"
--------------------------------------------------------------------
Repositories
--------------------------------------------------------------------
Id: gena
Description: None
pulp-admin repo list --fields "Id,Description"
--------------------------------------------------------------------
Repositories
--------------------------------------------------------------------
Id: gena
+ This bug was cloned from Bugzilla Bug #1154150 +
Updated by jortel@redhat.com about 8 years ago
Document this behavior. Ensure CLI replacement does not do this.
+ This comment was cloned from Bugzilla #1154150 comment 1 +
Updated by ipanova@redhat.com about 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
Updated by ipanova@redhat.com about 8 years ago
- Status changed from ASSIGNED to POST
Updated by ipanova@redhat.com about 8 years ago
- Status changed from POST to MODIFIED
Updated by igulina@redhat.com almost 8 years ago
- Status changed from 5 to ASSIGNED
rpm -qa pulp-server
pulp-server-2.6.1-0.2.beta.fc20.noarch
Examples were added into --field option and available on
- pulp-admin auth user list --help
- pulp-admin auth role list --help
- pulp-consumer puppet repos --help
- pulp-consumer rpm repos --help
- pulp-admin consumer list --help
- pulp-admin bindings search --help
- pulp-admin docker repo list --help
- pulp-admin node list --help and others
for example: >> pulp-admin node list --feilds
Command: list
Description: list child nodes
Available Arguments:
--fields - comma-separated list of consumer fields; if specified only the
given fields will be displayed. Example: "id,display_name".
...
Docs to update:
http://pulp.readthedocs.org/en/latest/user-guide/admin-client/nodes.html?highlight=fields
http://pulp.readthedocs.org/en/latest/user-guide/admin-client/consumer.html?highlight=fields
Updated by ipanova@redhat.com almost 8 years ago
- Status changed from ASSIGNED to POST
Added by ipanova@redhat.com almost 8 years ago
Added by ipanova@redhat.com almost 8 years ago
Updated docs with --field option.
closes #582
Updated by ipanova@redhat.com almost 8 years ago
- Status changed from 5 to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|ec802f5afc72f8ae19dbeabe32fab51c113b209e.
Updated by dkliban@redhat.com almost 8 years ago
- Status changed from MODIFIED to 5
Updated by pthomas@redhat.com almost 8 years ago
- Status changed from 5 to 6
verified
https://pulp.readthedocs.org/en/latest/user-guide/general-reference.html#criteria
Updated by dkliban@redhat.com over 7 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Updated docs with --field option.
closes #582