Skip to content

Commit

Permalink
fix sim sled-agent generation check
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher committed Nov 21, 2024
1 parent 630ea16 commit f3652cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sled-agent/src/sim/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ impl Storage {
config: OmicronPhysicalDisksConfig,
) -> Result<DisksManagementResult, HttpError> {
if let Some(stored_config) = self.config.as_ref() {
if stored_config.generation < config.generation {
if stored_config.generation > config.generation {
return Err(HttpError::for_client_error(
None,
http::StatusCode::BAD_REQUEST,
Expand Down

0 comments on commit f3652cc

Please sign in to comment.