Juan Hernandez has uploaded a new change for review.

Change subject: codegen, sdk: Manually fix VM NUMA node broker class
......................................................................

codegen, sdk: Manually fix VM NUMA node broker class

This class extends the "NumaNode" parameter class, and that is wrong, it
should extend "VirtualNumaNode". This happens because the current
version of the code generator calculates types using plural to singular
(and the other way around) rules, instead of getting the exact
information from the XML schema. This issue will be properly fixed in
the next version of the generator. This patch fixes it manually to
reduce the differences on the generated code.

Change-Id: I35f5c82a7b3d592f9570f500b8684eeda2494203
Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com>
---
M src/ovirtsdk/infrastructure/brokers.py
1 file changed, 3 insertions(+), 3 deletions(-)


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

diff --git a/src/ovirtsdk/infrastructure/brokers.py 
b/src/ovirtsdk/infrastructure/brokers.py
index f7f32cd..b2ceeeb 100644
--- a/src/ovirtsdk/infrastructure/brokers.py
+++ b/src/ovirtsdk/infrastructure/brokers.py
@@ -25184,7 +25184,7 @@
             context=self.context
         )
 
-class VMNumaNode(params.NumaNode, Base):
+class VMNumaNode(params.VirtualNumaNode, Base):
     def __init__(self, parentclass, superclass, context):
         Base.__init__(self, context)
         self.parentclass = parentclass
@@ -25284,7 +25284,7 @@
         #still available at client's code.
         raise DisconnectedError
 
-    def add(self, virtualnumanode, expect=None, correlation_id=None):
+    def add(self, vmnumanode, expect=None, correlation_id=None):
 
         '''
         @type VirtualNumaNode:
@@ -25314,7 +25314,7 @@
                     '{vm:id}': self.parentclass.get_id(),
                 }
             ),
-            body=ParseHelper.toXml(virtualnumanode),
+            body=ParseHelper.toXml(vmnumanode),
             headers={"Expect":expect, "Correlation-Id":correlation_id}
         )
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I35f5c82a7b3d592f9570f500b8684eeda2494203
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to