Merge "Add ability to see deleted and active records."
This commit is contained in:
@@ -129,8 +129,7 @@ def get_instance_id_from_name_label(name_label, template):
|
|||||||
|
|
||||||
def find_orphaned_instances(session, verbose=False):
|
def find_orphaned_instances(session, verbose=False):
|
||||||
"""Find and return a list of orphaned instances."""
|
"""Find and return a list of orphaned instances."""
|
||||||
ctxt = context.get_admin_context()
|
ctxt = context.get_admin_context(read_deleted="only")
|
||||||
ctxt.read_deleted = True
|
|
||||||
|
|
||||||
orphaned_instances = []
|
orphaned_instances = []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user