def clean_orphaned_instances(xenapi, orphaned_instances):
 for (vm_ref, vm_rec, instance) in orphaned_instances:
  if CONF.verbose:
   print ('CLEANING INSTANCE (%s)' % instance.name)
  cleanup_instance(xenapi, instance, vm_ref, vm_rec)

def clean_orphaned_instances ( xenapi , orphaned_instances ) : for ( vm_ref , vm_rec , instance ) in orphaned_instances : if CONF . verbose : print ( 'CLEANING INSTANCE (%s)' % instance . name ) cleanup_instance ( xenapi , instance , vm_ref , vm_rec )
clean orphaned instances .