summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-01-16 11:49:28 -0500
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-01-16 11:49:28 -0500
commitd67b29665f9fc047bf2db6a8e63dfa9942eeb27f (patch)
treed6c8246a638af6edef6c40365a465db293e25426 /func
parentb3da4f97d4f6703aab297e4d6367d9f1e867da64 (diff)
downloadthird_party-func-d67b29665f9fc047bf2db6a8e63dfa9942eeb27f.tar.gz
third_party-func-d67b29665f9fc047bf2db6a8e63dfa9942eeb27f.tar.xz
third_party-func-d67b29665f9fc047bf2db6a8e63dfa9942eeb27f.zip
pyflakes/pychecker cleanups
Diffstat (limited to 'func')
-rw-r--r--func/minion/modules/virt.py6
1 files changed, 3 insertions, 3 deletions
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()