[gnome-boxes] ovirt-broker: Do not sanitize oVirt URI
- From: Zeeshan Ali <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] ovirt-broker: Do not sanitize oVirt URI
- Date: Fri, 25 Nov 2016 17:57:38 +0000 (UTC)
commit 95ee50736a27a25a7407736aacf933048c3a53af
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Nov 23 12:52:14 2016 +0100
ovirt-broker: Do not sanitize oVirt URI
Since libgovirt release 0.3.4, the proxy URI neither needs to have the
"/api" path nor the "https" prefix. The sanitization is now handled by
libgovirt.
https://bugzilla.gnome.org/show_bug.cgi?id=773726
src/ovirt-broker.vala | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/ovirt-broker.vala b/src/ovirt-broker.vala
index de60515..8cf1936 100644
--- a/src/ovirt-broker.vala
+++ b/src/ovirt-broker.vala
@@ -29,17 +29,7 @@ private class Boxes.OvirtBroker : Boxes.Broker {
if (proxies.lookup (source.name) != null)
return;
- // turn ovirt://host/path into https://host/path/api which
- // is where the REST API is reachable from
- Xml.URI uri = Xml.URI.parse (source.uri);
- return_if_fail (uri.scheme == "ovirt");
- uri.scheme = "https";
- if (uri.path == null)
- uri.path= "/api";
- else
- uri.path = GLib.Path.build_filename (uri.path, "api");
-
- var proxy = new Ovirt.Proxy (uri.save ());
+ var proxy = new Ovirt.Proxy (source.uri);
proxy.authenticate.connect ((proxy, auth, retrying) => {
if (retrying)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]