Merge "Add ability to see deleted and active records."

This commit is contained in:
Jenkins
2011-12-08 23:01:27 +00:00
committed by Gerrit Code Review

View File

@@ -129,8 +129,7 @@ def get_instance_id_from_name_label(name_label, template):
def find_orphaned_instances(session, verbose=False):
"""Find and return a list of orphaned instances."""
ctxt = context.get_admin_context()
ctxt.read_deleted = True
ctxt = context.get_admin_context(read_deleted="only")
orphaned_instances = []