Michael Pasternak has uploaded a new change for review. Change subject: sdk: sdk ignores url attribute and hardcode /api #1038952 ......................................................................
sdk: sdk ignores url attribute and hardcode /api #1038952 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1038952 Change-Id: Ic3a05c7e6a8d00fa85b25a7e04e78541c1b0fa70 Signed-off-by: Michael pasternak <mpast...@redhat.com> --- M src/codegen/templates/entrypointheadtemplate M src/codegen/templates/entrypointtemplate M src/ovirtsdk/api.py 3 files changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/60/22460/1 diff --git a/src/codegen/templates/entrypointheadtemplate b/src/codegen/templates/entrypointheadtemplate index 8ec4e7b..b881534 100644 --- a/src/codegen/templates/entrypointheadtemplate +++ b/src/codegen/templates/entrypointheadtemplate @@ -23,6 +23,7 @@ %(timestamp)s import types +import urlparse from ovirtsdk.infrastructure.errors import UnsecuredConnectionAttemptError from ovirtsdk.infrastructure.connectionspool import ConnectionsPool diff --git a/src/codegen/templates/entrypointtemplate b/src/codegen/templates/entrypointtemplate index 0a0f14c..28675c3 100644 --- a/src/codegen/templates/entrypointtemplate +++ b/src/codegen/templates/entrypointtemplate @@ -74,7 +74,7 @@ # Get entry point entry_point = proxy.request( method='GET', - url='/api' + url=urlparse.urlparse(url).path ) # If server returns no response for the root resource, this is sign diff --git a/src/ovirtsdk/api.py b/src/ovirtsdk/api.py index d43099a..4fea8c1 100644 --- a/src/ovirtsdk/api.py +++ b/src/ovirtsdk/api.py @@ -23,6 +23,7 @@ '''Generated at: 2013-09-03 17:33:36.499568''' import types +import urlparse from ovirtsdk.infrastructure.errors import UnsecuredConnectionAttemptError from ovirtsdk.infrastructure.connectionspool import ConnectionsPool @@ -129,7 +130,7 @@ # Get entry point entry_point = proxy.request( method='GET', - url='/api' + url=urlparse.urlparse(url).path ) # If server returns no response for the root resource, this is sign -- To view, visit http://gerrit.ovirt.org/22460 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic3a05c7e6a8d00fa85b25a7e04e78541c1b0fa70 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