Skip to content

Commit

Permalink
Merge pull request #12 from molnett/fix-no-confirm
Browse files Browse the repository at this point in the history
fix: no-confirm for new service creation
tmlye authored Feb 25, 2024
2 parents d4e3c67 + ddfebd6 commit 0d772c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/commands/services.rs
Original file line number Diff line number Diff line change
@@ -127,12 +127,12 @@ impl Deploy {
if let Some(false) = self.no_confirm {
let new_svc_yaml = serde_yaml::to_string(&manifest.service)?;
self.render_diff("".to_string(), new_svc_yaml)?;
}

let selection = self.user_confirmation();
if selection == 0 {
println!("Cancelling...");
return Ok(())
let selection = self.user_confirmation();
if selection == 0 {
println!("Cancelling...");
return Ok(())
}
}

let result = base.api_client().deploy_service(token, org_name, &manifest.environment, manifest.service)?;

0 comments on commit 0d772c0

Please sign in to comment.