Juan Hernandez has uploaded a new change for review. Change subject: codegen, sdk: Manually fix brick parameter name ......................................................................
codegen, sdk: Manually fix brick parameter name This name of the parameter used to add a Gluster brick is currently "glusterbricks", and that is wrong, it should be "brick". 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: I090119f6d3972970ecf81756139f57a21ebd4769 Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> --- M src/ovirtsdk/infrastructure/brokers.py 1 file changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/67/37867/1 diff --git a/src/ovirtsdk/infrastructure/brokers.py b/src/ovirtsdk/infrastructure/brokers.py index 88e90ea..7105f44 100644 --- a/src/ovirtsdk/infrastructure/brokers.py +++ b/src/ovirtsdk/infrastructure/brokers.py @@ -1782,7 +1782,7 @@ #still available at client's code. raise DisconnectedError - def add(self, glusterbricks, expect=None, correlation_id=None): + def add(self, brick, expect=None, correlation_id=None): ''' @type GlusterBricks: @@ -1810,7 +1810,7 @@ '{glustervolume:id}': self.parentclass.get_id(), } ), - body=ParseHelper.toXml(glusterbricks), + body=ParseHelper.toXml(brick), headers={"Expect":expect, "Correlation-Id":correlation_id} ) @@ -4656,7 +4656,7 @@ #still available at client's code. raise DisconnectedError - def add(self, glusterbricks): + def add(self, brick): ''' @type GlusterBricks: @@ -4676,7 +4676,7 @@ '{glustervolume:id}': self.parentclass.get_id(), } ), - body=ParseHelper.toXml(glusterbricks), + body=ParseHelper.toXml(brick), headers={} ) -- To view, visit http://gerrit.ovirt.org/37867 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I090119f6d3972970ecf81756139f57a21ebd4769 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