Reference orphaned_instance instead of instance.

Change-Id: I3170f7b67466645d4c410b1d58b3e4e15b9e3265
This commit is contained in:
Josh Kearney
2011-10-10 12:54:56 -05:00
parent d5af7c6d8a
commit 3a4eb1da2f

View File

@@ -321,9 +321,9 @@ def list_orphaned_instances(orphaned_instances, verbose=False):
"""List orphaned instances."""
for orphaned_instance in orphaned_instances:
if verbose:
print "ORPHANED INSTANCE (%s)" % instance.name
print "ORPHANED INSTANCE (%s)" % orphaned_instance.name
else:
print instance.name
print orphaned_instance.name
def clean_orphaned_instances(session, orphaned_instances, verbose=False):