Skip to content

Commit

Permalink
fix: dry run in proposals that require forum post creation (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosa authored Jan 21, 2025
1 parent db48c9f commit be2b2db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rs/cli/src/ic_admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ impl IcAdmin for IcAdminImpl {
Box::pin(async move {
let _ = self._exec(cmd, opts, true, false, false).await;

if self.dry_run {
// Same as if someone said "Do you want to continue? [Y/n] n"
return Ok(false);
}

if self.proceed_without_confirmation {
// Don't ask for confirmation, allow to proceed
return Ok(true);
Expand Down

0 comments on commit be2b2db

Please sign in to comment.