[
https://issues.apache.org/jira/browse/CLOUDSTACK-9663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16359523#comment-16359523
]
ASF subversion and git services commented on CLOUDSTACK-9663:
-------------------------------------------------------------
Commit 38ccbfb79c0654495ab03d54f94d3cdc481ba7c6 in cloudstack's branch
refs/heads/4.11 from [~dhlaluku]
[ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=38ccbfb ]
CLOUDSTACK-9663: updateRole cmd to return updated role as JSON (#2406)
This fixes updateRole to return a role response, like other update APIs.
Signed-off-by: Rohit Yadav <[email protected]>
> updateRole should return updated role as json
> ---------------------------------------------
>
> Key: CLOUDSTACK-9663
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9663
> Project: CloudStack
> Issue Type: Improvement
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: API
> Affects Versions: 4.9.0
> Reporter: René Moser
> Priority: Trivial
> Fix For: Future, 4.11.0.0
>
>
> updateRole does currently only return success but one would expect it returns
> the updated role as json like other update APIs
> Acutal results:
> {code}
> $ cs updateRole id=0d6f4eca-cf71-47ba-81d9-aa129b38911b name=test
> --region=simulator
> {
> "success": "true"
> }
> {code}
> expected resutls:
> {code}
> $ cs updateRole id=0d6f4eca-cf71-47ba-81d9-aa129b38911b name=test
> --region=simulator
> {
> "role": {
> "id": ...
> "description": ...
> "name": ...
> "type": ...
> }
> }
> {code}
> similar to other update api e.g.
> http://cloudstack.apache.org/api/apidocs-4.9/apis/updateUser.html.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)