Juan Hernandez has uploaded a new change for review.

Change subject: restapi: Ignore case in CPU architecture
......................................................................

restapi: Ignore case in CPU architecture

The validation of the CPU architecture should be done ignoring case.

Change-Id: Ib06b176dcc48fac667713683bdae5b1cfe4a4332
Bug-Url: https://bugzilla.redhat.com/1129248
Signed-off-by: Juan Hernandez <[email protected]>
---
M 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/CPUValidator.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/93/31693/1

diff --git 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/CPUValidator.java
 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/CPUValidator.java
index 0c4b772..da62ed1 100644
--- 
a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/CPUValidator.java
+++ 
b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/CPUValidator.java
@@ -12,7 +12,7 @@
     public void validateEnums(CPU cpu) {
         if (cpu != null) {
             if (cpu.isSetArchitecture()) {
-                validateEnum(Architecture.class, cpu.getArchitecture(), false);
+                validateEnum(Architecture.class, cpu.getArchitecture(), true);
             }
         }
     }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib06b176dcc48fac667713683bdae5b1cfe4a4332
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to