comparison src/virsh.rs @ 45:91aea67d88fb

fix path
author AnaTofuZ <anatofuz@gmail.com>
date Sun, 22 Nov 2020 18:06:30 +0900
parents 98138c3f00f0
children d6ef7ea91ff4
comparison
equal deleted inserted replaced
44:9d5cb6b2046e 45:91aea67d88fb
82 .arg(QCOW2) 82 .arg(QCOW2)
83 .arg("-b") 83 .arg("-b")
84 .arg(template_path) 84 .arg(template_path)
85 .arg("-f") 85 .arg("-f")
86 .arg(QCOW2) 86 .arg(QCOW2)
87 .arg(vm_name) 87 .arg(format!("{}.qcow2", vm_name))
88 .output() 88 .output()
89 .unwrap_or_else(|_| panic!("failed to generate {}", &vm_name)); 89 .unwrap_or_else(|_| panic!("failed to generate {}", &vm_name));
90 io::stdout().write_all(&output.stdout).unwrap(); 90 io::stdout().write_all(&output.stdout).unwrap();
91 io::stderr().write_all(&output.stderr).unwrap(); 91 io::stderr().write_all(&output.stderr).unwrap();
92 } 92 }