Project

Profile

Help

Issue #1057

closed

CLI returns unclear error for nonexistant role-id in permission grant/revoke

Added by pthomas@redhat.com almost 9 years ago. Updated almost 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

[root@celeno ~]# rpm -qa pulp-server
pulp-server-2.7.0-0.3.beta.el6.noarch

[root@celeno ~]# 

The property name in the help for permission grant/revoke is role-id but gives the invalid property error.

               manipulated
  --login    - login of the user to which access to given resource is being
               granted
  --role-id  - id of the role to which access to given resource is being granted
  -o         - (required) type of permissions being granted, valid permissions:
               create, read, update, delete, execute
[root@celeno ~]# pulp-admin  auth permission grant --role-id test  --resource / -o READ 
Invalid properties: ['role_id']

[root@celeno ~]# pulp-admin  auth permission grant --role_id test  --resource / -o READ 
Command: grant
Description: grants resource permissions to given user or given role
Usage: you can specify either login or role-id in this command; both cannot be
specified at the same time

Available Arguments:

  --resource - (required) resource REST API path whose permissions are being
               manipulated
  --login    - login of the user to which access to given resource is being
               granted
  --role-id  - id of the role to which access to given resource is being granted
  -o         - (required) type of permissions being granted, valid permissions:
               create, read, update, delete, execute
The following options were specified but do not exist on the command:
  --role_id
[root@celeno ~]# pulp-admin  auth permission revoke --role_id test  --resource / -o READ 
Command: revoke
Description: revokes resource permissions from given user or given role
Usage: you can specify either login or role-id in this command; both cannot be
specified at the same time

Available Arguments:

  --resource - (required) resource REST API path whose permissions are being
               manipulated
  --login    - login of the user from which access to given resource is being
               revoked
  --role-id  - id of the role from which access to given resource is being
               revoked
  -o         - (required) type of permissions being revoked, valid permissions:
               create, read, update, delete, execute
The following options were specified but do not exist on the command:
  --role_id
[root@celeno ~]# pulp-admin  auth permission revoke --role-id test  --resource / -o READ 
Invalid properties: ['role_id']

Related issues

Related to Pulp - Issue #1126: consumer group bind needs to have error handling when the repo doesn't existCLOSED - WONTFIXActions
Related to Pulp - Issue #433: Permission Grant : Role-id IssueCLOSED - CURRENTRELEASEamacdona@redhat.comActions

Also available in: Atom PDF