Description of problem: Bad error message when trying to create a new Role without passing the collection correctly : "unknown error: 'int' object has no attribute 'split'" Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: ## collection is not passed correctly [RHEVM shell (connected)]# add role --name aaa --permits-permit 31 unknown error: 'int' object has no attribute 'split' ## wrong permit id ( will file a new bug for this issue ) [RHEVM shell (connected)]# add role --name aaa --permits-permit "permit.id=30" --administrative true error: status: 500 reason: Internal Server Error detail: HTTP Status 500 ## finally succeeded to add Role: [RHEVM shell (connected)]# add role --name aaa --permits-permit "permit.id=301" --administrative true id : c6b34030-4ee7-4344-bd72-35ca65dcfc1a name : aaa administrative: True mutable : True
this was already fixed, please recheck against latest cli.
I'm using sf5 , rhevm-cli-3.2.0.3-1.el6ev.noarch
(In reply to comment #0) > > ## wrong permit id ( will file a new bug for this issue ) > > [RHEVM shell (connected)]# add role --name aaa --permits-permit > "permit.id=30" --administrative true > > error: > status: 500 > reason: Internal Server Error > detail: HTTP Status 500 > btw oded i would report api error for ^ this (wrong permit.id cause 500).
*** Bug 920027 has been marked as a duplicate of this bug. ***
Verified on is14 [RHEVM shell]# add role --name aaa --permits-permit 31 error: "31" is invalid segment at option "--permits-permit". [RHEVM shell]# add role --name aaa --permits-permit "permit.id=30" --administrative true error: status: 400 reason: Bad Request detail: 30 is not a valid permit ID. [RHEVM shell]# add role --name aaa --permits-permit "permit.id=301" --administrative true id : f1669c81-7301-454a-862a-f8d36266f131 name : aaa administrative: True mutable : True
Closing - RHEV 3.3 Released