summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorAlessandro Pilotti <ap@pilotti.it>2012-11-20 13:38:14 +0200
committerAlessandro Pilotti <ap@pilotti.it>2012-11-20 13:38:14 +0200
commit9ddca42fe618f6417e785c6aef1f8dc5ee8fcdf4 (patch)
treed25f493c912a3760964fcce39f620921df8f28e4 /nova/tests
parent98032e804aa442e1aad17723cab2ed163ee0c810 (diff)
Fixes a bug in get_info in the Hyper-V Driver
Fixes Bug #1081070 When a VM is getting manually shut down on Hyper-V or in case of a host reboot, "nova list" still reports the VM as ACTIVE after nova.compute.manager_sync_power_states runs. The bug is releated to the vm state being incorrectly returned as a string. Change-Id: I87957d2fa504bad110fb4d1d8b209a45cad11c2c
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_hypervapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/test_hypervapi.py b/nova/tests/test_hypervapi.py
index 1c49fe2f5..36f153531 100644
--- a/nova/tests/test_hypervapi.py
+++ b/nova/tests/test_hypervapi.py
@@ -188,7 +188,7 @@ class HyperVAPITestCase(basetestcase.BaseTestCase):
self._spawn_instance(True)
info = self._conn.get_info(self._instance_data)
- self.assertEquals(info["state"], str(power_state.RUNNING))
+ self.assertEquals(info["state"], power_state.RUNNING)
def test_spawn_cow_image(self):
self._test_spawn_instance(True)