diff --git a/lib/src/cli.rs b/lib/src/cli.rs index 44f688b5c..fec7b8776 100644 --- a/lib/src/cli.rs +++ b/lib/src/cli.rs @@ -438,7 +438,8 @@ async fn edit(opts: EditOpts) -> Result<()> { }; if new_host.spec == host.spec { - anyhow::bail!("No changes in current host spec"); + println!("Edit cancelled, no changes made."); + return Ok(()); } let new_spec = RequiredHostSpec::from_spec(&new_host.spec)?; let fetched = pull(repo, &new_spec.image, opts.quiet).await?;