[libgovirt] resource: Fix ovirt_resource_rest_call_sync return value
- From: Eduardo de Barros Lima <eblima src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgovirt] resource: Fix ovirt_resource_rest_call_sync return value
- Date: Wed, 9 Aug 2017 20:03:08 +0000 (UTC)
commit d8adff27374290c0a9ae56d2bbb5dd4e5f29c1a0
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Jul 25 17:34:31 2017 +0200
resource: Fix ovirt_resource_rest_call_sync return value
Upon success, ovirt_resource_rest_call_sync() was always returning
NULL, which is not what is expected. This, among other things, made
ovirt_resource_refresh() non-functional.
govirt/ovirt-resource.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/govirt/ovirt-resource.c b/govirt/ovirt-resource.c
index 1413a77..0c750ac 100644
--- a/govirt/ovirt-resource.c
+++ b/govirt/ovirt-resource.c
@@ -499,7 +499,7 @@ G_GNUC_INTERNAL RestXmlNode *ovirt_resource_rest_call_sync(OvirtRestCall *call,
return NULL;
}
- return root;
+ return ovirt_rest_xml_node_from_call(REST_PROXY_CALL(call));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]