Minor code cleanups

This commit is contained in:
Ed Leafe
2011-01-13 10:51:31 -06:00
parent 441a6d3631
commit 7af8f5ac5f
3 changed files with 1 additions and 6 deletions

View File

@@ -125,7 +125,7 @@ class ComputeManager(manager.Manager):
# FIXME(ja): include other fields from state?
instance_ref = self.db.instance_get(context, instance_id)
try:
info = self.driver.get_info(instance_ref)
info = self.driver.get_info(instance_ref['name'])
state = info['state']
except exception.NotFound:
state = power_state.NOSTATE

View File

@@ -265,10 +265,6 @@ class XenAPIVMTestCase(test.TestCase):
return instance
class XenAPIDiffieHellmanTestCase(test.TestCase):
"""
Unit tests for Diffie-Hellman code

View File

@@ -22,7 +22,6 @@ Management class for VM-related functions (spawn, reboot, etc).
import json
import M2Crypto
import os
import random
import subprocess
import tempfile
import uuid