def clean_orphaned_vdis(xenapi, vdi_uuids):
    """Clean orphaned VDIs."""
    for vdi_uuid in vdi_uuids:
        if CONF.verbose:
            print "CLEANING VDI (%s)" % vdi_uuid

        vdi_ref = call_xenapi(xenapi, 'VDI.get_by_uuid', vdi_uuid)
        try:
            call_xenapi(xenapi, 'VDI.destroy', vdi_ref)
        except XenAPI.Failure, exc:
            print >> sys.stderr, (vdi_uuid, exc) % "Skipping %s: %s"
dataset/ETHPy150Open openstack/nova/tools/xenserver/vm_vdi_cleaner.py/clean_orphaned_vdis/swapped operands of `%`