Skip to content

Commit

Permalink
Avoid snafu context(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Oct 19, 2023
1 parent 6b0b883 commit 752b699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/operator/src/hdfs_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 752b699

Please sign in to comment.