summaryrefslogtreecommitdiff
path: root/src/cmd/shutdown.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/shutdown.rs')
-rw-r--r--src/cmd/shutdown.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/shutdown.rs b/src/cmd/shutdown.rs
index b53ebd3..cdd3069 100644
--- a/src/cmd/shutdown.rs
+++ b/src/cmd/shutdown.rs
@@ -9,7 +9,7 @@ pub fn shutdown(specs: &[Specification]) -> Result<(), VirtError> {
let libvirt = Libvirt::connect("qemu:///system")?;
for spec in specs {
info!("shutting down virtual machine {}", spec.name);
- libvirt.shutdown(&spec.name)?;
+ libvirt.trigger_shutdown(&spec.name)?;
}
for spec in specs {
debug!("waiting for {} to become inactive", spec.name);