From 27de628013bb20ae3062a3807d75872d53b57aca Mon Sep 17 00:00:00 2001 From: Kamil Lepek Date: Wed, 26 Jun 2019 14:42:31 +0200 Subject: [PATCH] Removed wrong status check during unregister_volume_type in pyocf. Signed-off-by: Kamil Lepek --- tests/functional/pyocf/types/ctx.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/functional/pyocf/types/ctx.py b/tests/functional/pyocf/types/ctx.py index 7b4371d..eb01997 100644 --- a/tests/functional/pyocf/types/ctx.py +++ b/tests/functional/pyocf/types/ctx.py @@ -74,11 +74,9 @@ class OcfCtx: if not vol_type.type_id: raise Exception("Already unregistered") - result = self.lib.ocf_ctx_unregister_volume_type( + self.lib.ocf_ctx_unregister_volume_type( self.ctx_handle, vol_type.type_id ) - if result != 0: - raise OcfError("Volume type unregistration failed", result) del self.volume_types[vol_type.type_id]