Hide Forgot
Description of problem: When running the permissions revoke command with a missing username no warning is displayed. The command silently fails. Would be helpful to display a message stating the required --username or --role is missing Version-Release number of selected component (if applicable): pulp-0.0.266-1.el6.noarch How reproducible: Always Steps to Reproduce: 1. Create a new user 2. Add some permissions to a resource 3. Attempt to remove a permission, but don't specify a username Actual results: # pulp-admin -u admin -p admin permission revoke --resource '/users/' -o read <Note nothing is written, this silently does nothing> Expected results: # pulp-admin -u admin -p admin permission revoke --resource '/users/' -o read Usage: pulp-admin <options> permission revoke <options> ... ... Additional info:
added same check in grant fix pushed in d390d846521e61a58a911ad7c53f40166a5a5bcc
build: 0.267
verified [root@preethi ~]# rpm -q pulp pulp-0.0.267-1.fc15.noarch [root@preethi ~]# pulp-admin permission revoke --resource '/users/' -o read error: Either a user or a role is required [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin permission grant --resource '/users/' -o readerror: Either a user or a role is required
Pulp v1.0 is released Closed Current Release.