mirror of
https://github.com/serokell/deploy-rs.git
synced 2024-11-22 05:04:13 +03:00
[Chore] fix error messages claiming to have rolled back when not actually doing so
closes: #241
This commit is contained in:
parent
e3f4183268
commit
6f77c65c25
@ -582,8 +582,8 @@ async fn run_deploy(
|
||||
if dry_activate {
|
||||
info!("dry run, not rolling back");
|
||||
}
|
||||
info!("Revoking previous deploys");
|
||||
if rollback_succeeded && cmd_overrides.auto_rollback.unwrap_or(true) {
|
||||
info!("Revoking previous deploys");
|
||||
// revoking all previous deploys
|
||||
// (adheres to profile configuration if not set explicitely by
|
||||
// the command line)
|
||||
@ -592,8 +592,9 @@ async fn run_deploy(
|
||||
deploy::deploy::revoke(*deploy_data, *deploy_defs).await?;
|
||||
}
|
||||
}
|
||||
return Err(RunDeployError::Rollback);
|
||||
}
|
||||
return Err(RunDeployError::Rollback);
|
||||
return Err(RunDeployError::DeployProfile(e))
|
||||
}
|
||||
succeeded.push((deploy_data, deploy_defs))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user