From d3e43722d4a3e08648746fa9c6c4fc36378b81e7 Mon Sep 17 00:00:00 2001 From: Chris Holcombe Date: Thu, 28 Sep 2017 08:09:41 -0700 Subject: [PATCH] Fix typo in response --- disk-manager/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk-manager/src/main.rs b/disk-manager/src/main.rs index 94508cb..17dc696 100644 --- a/disk-manager/src/main.rs +++ b/disk-manager/src/main.rs @@ -133,7 +133,7 @@ fn add_disk(s: &mut Socket, d: &str, backend: &BackendType, config_dir: &Path) - result.set_result(OpResult_ResultType::OK); } Err(e) => { - result.set_result(OpResult_ResultType::OK); + result.set_result(OpResult_ResultType::ERR); result.set_error_msg(e.to_string()); } } @@ -176,7 +176,7 @@ fn remove_disk(s: &mut Socket, d: &str, backend: &BackendType, config_dir: &Path result.set_result(OpResult_ResultType::OK); } Err(e) => { - result.set_result(OpResult_ResultType::OK); + result.set_result(OpResult_ResultType::ERR); result.set_error_msg(e.to_string()); } };