From d67b29665f9fc047bf2db6a8e63dfa9942eeb27f Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Wed, 16 Jan 2008 11:49:28 -0500 Subject: pyflakes/pychecker cleanups --- func/minion/modules/virt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'func/minion/modules/virt.py') diff --git a/func/minion/modules/virt.py b/func/minion/modules/virt.py index 0da9726..04d36bd 100644 --- a/func/minion/modules/virt.py +++ b/func/minion/modules/virt.py @@ -84,16 +84,16 @@ class FuncLibvirtConnection(object): if vm.name() == vmid: return vm - raise codes.FuncException("virtual machine %s not found" % needle) + raise codes.FuncException("virtual machine %s not found" % vmid) def shutdown(self, vmid): return self.find_vm(vmid).shutdown() def pause(self, vmid): - return suspend(self.conn,vmid) + return self.suspend(self.conn,vmid) def unpause(self, vmid): - return resume(self.conn,vmid) + return self.resume(self.conn,vmid) def suspend(self, vmid): return self.find_vm(vmid).suspend() -- cgit