From 752b6994e13bb1f9113d79b54f1479a5527c4c28 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Thu, 19 Oct 2023 13:47:48 +0200 Subject: [PATCH] Avoid snafu context(false) --- rust/operator/src/hdfs_controller.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/operator/src/hdfs_controller.rs b/rust/operator/src/hdfs_controller.rs index 2aba436e..922e8147 100644 --- a/rust/operator/src/hdfs_controller.rs +++ b/rust/operator/src/hdfs_controller.rs @@ -171,7 +171,7 @@ pub enum Error { source: stackable_operator::product_config::writer::PropertiesWriterError, rolegroup: String, }, - #[snafu(display("failed to configure graceful shutdown"), context(false))] + #[snafu(display("failed to configure graceful shutdown"))] GracefulShutdown { source: operations::graceful_shutdown::Error, }, @@ -668,7 +668,7 @@ fn rolegroup_statefulset( ) .context(FailedToCreateContainerAndVolumeConfigurationSnafu)?; - add_graceful_shutdown_config(merged_config, &mut pb)?; + add_graceful_shutdown_config(merged_config, &mut pb).context(GracefulShutdownSnafu)?; let mut pod_template = pb.build_template(); if let Some(pod_overrides) = hdfs.pod_overrides_for_role(role) {