Ravi Nori has uploaded a new change for review.

Change subject: restapi : Add permit to role issues(#919202)
......................................................................

restapi : Add permit to role issues(#919202)

When trying to add permit to role the permit
name needs to accept both lower case and upper
case names.

Change-Id: I7ae176b9b6d60b4f8a51c16354ec6210f13870c9
Bug-Url: https://bugzilla.redhat.com/919202
Signed-off-by: Ravi Nori <rn...@redhat.com>
---
M 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/PermitMapper.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/39/13139/1

diff --git 
a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/PermitMapper.java
 
b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/PermitMapper.java
index d59c6d2..f61e0df 100644
--- 
a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/PermitMapper.java
+++ 
b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/PermitMapper.java
@@ -15,7 +15,7 @@
                ? template
                : model.getId() != null
                  ? ActionGroup.forValue(Integer.valueOf(model.getId()))
-                 : ActionGroup.valueOf(model.getName());
+                 : ActionGroup.valueOf(model.getName().toUpperCase());
     }
 
     @Mapping(from = String.class, to = ActionGroup.class)


--
To view, visit http://gerrit.ovirt.org/13139
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7ae176b9b6d60b4f8a51c16354ec6210f13870c9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <rn...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to