parallels: fix return status for parallelsConnectOpen

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 <nshirokovskiy@parallels.com>
This commit is contained in:
Nikolay Shirokovskiy 2015-04-20 09:24:00 +03:00 committed by Dmitry Guryanov
parent 930e8697a5
commit 21f62d60f6
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,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)

View File

@ -494,7 +494,7 @@ parallelsStorageOpen(virConnectPtr conn,
error:
parallelsStorageUnlock(storageState);
parallelsStorageClose(conn);
return -1;
return VIR_DRV_OPEN_ERROR;
}
static int