On 04/20/2015 09:24 AM, Nikolay Shirokovskiy wrote:
We should return VIR_DRV_OPEN_ERROR in case
if we handle scheme in query but some
error occur. Previously we sometimes
return VIR_DRV_OPEN_DECLINE.

Signed-off-by: Nikolay Shirokovskiy <nshirokovs...@parallels.com>
---
  src/parallels/parallels_network.c |    2 +-
  src/parallels/parallels_storage.c |    2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/parallels/parallels_network.c 
b/src/parallels/parallels_network.c
index 47f4886..42ef836 100644
--- a/src/parallels/parallels_network.c
+++ b/src/parallels/parallels_network.c
@@ -349,7 +349,7 @@ parallelsNetworkOpen(virConnectPtr conn,
   error:
      virObjectUnref(privconn->networks);
      privconn->networks = NULL;
-    return VIR_DRV_OPEN_DECLINED;
+    return VIR_DRV_OPEN_ERROR;
  }
int parallelsNetworkClose(virConnectPtr conn)
diff --git a/src/parallels/parallels_storage.c 
b/src/parallels/parallels_storage.c
index 6397601..4091124 100644
--- a/src/parallels/parallels_storage.c
+++ b/src/parallels/parallels_storage.c
@@ -494,7 +494,7 @@ parallelsStorageOpen(virConnectPtr conn,
   error:
      parallelsStorageUnlock(storageState);
      parallelsStorageClose(conn);
-    return -1;
+    return VIR_DRV_OPEN_ERROR;
  }
static int

ACKed and pushed, thanks!

--
Dmitry Guryanov

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to