From 7c2ecd33403e0769f0b887667f1b5e1bb03c3743 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 3 Aug 2025 10:43:22 -0500 Subject: [PATCH] fix response data --- repertory/repertory/include/cli/unmount.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repertory/repertory/include/cli/unmount.hpp b/repertory/repertory/include/cli/unmount.hpp index c8900dd7..10dc3c96 100644 --- a/repertory/repertory/include/cli/unmount.hpp +++ b/repertory/repertory/include/cli/unmount.hpp @@ -41,6 +41,7 @@ unmount(std::vector /* args */, const std::string &data_directory, .user = user}) .unmount(); if (response.response_type == rpc_response_type::success) { + auto orig_response{response}; std::cout << "waiting for unmount ..." << std::flush; for (std::uint8_t retry{0U}; retry < retry_count && @@ -60,8 +61,8 @@ unmount(std::vector /* args */, const std::string &data_directory, ret = exit_code::mount_active; } else { std::cout << " done!" << std::endl; - std::cout << static_cast(rpc_response_type::success) << std::endl; - std::cout << response.data.dump(2) << std::endl; + std::cout << static_cast(orig_response.response_type) << std::endl; + std::cout << orig_response.data.dump(2) << std::endl; } } else { std::cerr << response.data.dump(2) << std::endl;