Michael Pasternak has uploaded a new change for review.

Change subject: codegen: allow xml types as container key
......................................................................

codegen: allow xml types as container key

Change-Id: Id20db54da97ae101b19f0181c23f8450a341a175
Signed-off-by: Michael pasternak <mpast...@redhat.com>
---
M src/ovirtsdk/utils/parsehelper.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/89/17689/1

diff --git a/src/ovirtsdk/utils/parsehelper.py 
b/src/ovirtsdk/utils/parsehelper.py
index b3d6076..122df67 100644
--- a/src/ovirtsdk/utils/parsehelper.py
+++ b/src/ovirtsdk/utils/parsehelper.py
@@ -39,7 +39,9 @@
     def getXmlWrapperType(type_name):
         tn = type_name.lower()
         for k, v in params._rootClassMap.items():
-            if v.__name__.lower() == tn or k.lower() == tn:
+            if v.__name__.lower() == tn \
+             or k.lower() == tn \
+             or k.replace("_", "") == tn:
                 return v.__name__
         return type_name
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id20db54da97ae101b19f0181c23f8450a341a175
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <mpast...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to