We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44336df commit ecfd37aCopy full SHA for ecfd37a
vmm/src/app.rs
@@ -469,6 +469,7 @@ impl App {
469
let image_path = self.config.image_path.join(&manifest.image);
470
let image = Image::load(&image_path).context("Failed to load image")?;
471
let vm_id = manifest.id.clone();
472
+ let already_running = cids_assigned.contains_key(&vm_id);
473
let app_compose = vm_work_dir
474
.app_compose()
475
.context("Failed to read compose file")?;
@@ -517,7 +518,11 @@ impl App {
517
518
};
519
520
if auto_start && vm_work_dir.started().unwrap_or_default() {
- self.start_vm(&vm_id).await?;
521
+ if already_running {
522
+ info!("Skipping, {vm_id} is already running");
523
+ } else {
524
+ self.start_vm(&vm_id).await?;
525
+ }
526
}
527
528
Ok(is_new)
0 commit comments