Simone Tiraboschi has uploaded a new change for review.

Change subject: packaging: setup: fixing checks on create_volume exit codes
......................................................................

packaging: setup: fixing checks on create_volume exit codes

Checking the correct exit code on create_volume

Change-Id: I859e52351e163687e805395461f8477773b32700
Signed-off-by: Simone Tiraboschi <[email protected]>
---
M ovirt_hosted_engine_ha/lib/storage_backends.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha 
refs/changes/77/30277/1

diff --git a/ovirt_hosted_engine_ha/lib/storage_backends.py 
b/ovirt_hosted_engine_ha/lib/storage_backends.py
index 29970a8..5d58c43 100644
--- a/ovirt_hosted_engine_ha/lib/storage_backends.py
+++ b/ovirt_hosted_engine_ha/lib/storage_backends.py
@@ -262,7 +262,7 @@
             path = response['path']
             return False, path
 
-        elif response["status"]["code"] not in (201, 254):
+        elif response["status"]["code"] not in (100, 254):
             # 100 is returned when the volume doesn't exist
             # 254 is returned when Image path doesn't exist
             raise RuntimeError(response["status"]["message"])


-- 
To view, visit http://gerrit.ovirt.org/30277
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I859e52351e163687e805395461f8477773b32700
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: master
Gerrit-Owner: Simone Tiraboschi <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to