From 98b173376032b25f5932c209744a746429e85450 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 23 Jul 2020 12:25:20 +0200 Subject: [PATCH] api: apt: use schema default const for quiet param Signed-off-by: Thomas Lamprecht --- src/api2/node/apt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api2/node/apt.rs b/src/api2/node/apt.rs index 334a2713..37bf48d4 100644 --- a/src/api2/node/apt.rs +++ b/src/api2/node/apt.rs @@ -235,7 +235,7 @@ pub fn apt_update_database( let username = rpcenv.get_user().unwrap(); let to_stdout = if rpcenv.env_type() == RpcEnvironmentType::CLI { true } else { false }; - let quiet = quiet.unwrap_or(false); + let quiet = quiet.unwrap_or(API_METHOD_APT_UPDATE_DATABASE_PARAM_DEFAULT_QUIET); let upid_str = WorkerTask::new_thread("aptupdate", None, &username.clone(), to_stdout, move |worker| { if !quiet { worker.log("starting apt-get update") }