From 906bf3a115321e0fdf5b0b97a09a7c7b832486eb Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Thu, 9 Aug 2012 00:01:33 +0800 Subject: Fix a bug on db.instance_get_by_uuid in compute/manager.py The parameter for db.instance_get_by_uuid() is instance_uuid instead of instance. Correct it in the code. Change-Id: Ibc4d8352c101dc3be11a765646d4ef701e330b50 Signed-off-by: Shane Wang --- nova/compute/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 2f9d6066e..5ce92e548 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -1334,7 +1334,7 @@ class ComputeManager(manager.SchedulerDependentManager): instance_uuid=None): """Update the metadata published to the instance.""" if not instance: - instance = self.db.instance_get_by_uuid(context, instance) + instance = self.db.instance_get_by_uuid(context, instance_uuid) LOG.debug(_("Changing instance metadata according to %(diff)r") % locals(), instance=instance) self.driver.change_instance_metadata(context, instance, diff) -- cgit