diff --git a/lib/ansible/modules/cloud/misc/virt.py b/lib/ansible/modules/cloud/misc/virt.py index e24014b266..b0c84a4635 100644 --- a/lib/ansible/modules/cloud/misc/virt.py +++ b/lib/ansible/modules/cloud/misc/virt.py @@ -207,10 +207,10 @@ class LibvirtConnection(object): return self.find_vm(vmid).shutdown() def pause(self, vmid): - return self.suspend(self.conn,vmid) + return self.suspend(vmid) def unpause(self, vmid): - return self.resume(self.conn,vmid) + return self.resume(vmid) def suspend(self, vmid): return self.find_vm(vmid).suspend()