From 423dbafd08ac3bb970bcb842fa6e7812d42ceb4e Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Thu, 13 Sep 2012 12:06:09 -0700 Subject: Make compute/manager.py use self.host instead of FLAGS.host This prevents the instances returned from getting a different instance['host'] than was supplied to the manager. This shows up during integrated testing of 'resize'. Change-Id: Ifa4316bf7099dc2c60c4e87cfaafa93a4bc2e5b1 --- nova/tests/compute/test_compute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/tests') diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py index ca49a560a..4766ed034 100644 --- a/nova/tests/compute/test_compute.py +++ b/nova/tests/compute/test_compute.py @@ -1595,7 +1595,7 @@ class ComputeTestCase(BaseTestCase): self.compute.run_instance(self.context, instance=instance) new_instance = db.instance_update(self.context, instance['uuid'], - {'host': 'foo'}) + {'host': self.compute.host}) new_instance = jsonutils.to_primitive(new_instance) instance_type = instance_types.get_default_instance_type() -- cgit