diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-02-29 21:52:01 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-02-29 22:05:33 +0000 |
| commit | ff95c90f51d1d1e70a247cb7e94bb7cb757ac37d (patch) | |
| tree | 8e2bedb8f5b7381cae0bfbea7c997ce8054d9cfd /nova/compute | |
| parent | 3b241d2b5889f2bc8b9c05f205c4ff848375a508 (diff) | |
Ensure that context read_deleted is only one of 'no', 'yes' or 'only'
Fixes bug 942690
Change-Id: I1b1867062a8af7b3fb0eb575e6b9570a964cfefa
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index a4a18f1f8..5aac65a54 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -401,7 +401,7 @@ class ComputeManager(manager.SchedulerDependentManager): LOG.info(_("Instance %(instance_uuid)s did not exist in the " "DB, but I will shut it down anyway using a special " "context") % locals()) - ctxt = nova.context.get_admin_context(True) + ctxt = nova.context.get_admin_context('yes') self.terminate_instance(ctxt, instance_uuid) except Exception as ex: LOG.info(_("exception terminating the instance " |
