def print_xen_object(obj_type, obj, indent_level=0, spaces_per_indent=4):
    """Pretty-print a Xen object.

    Looks like:

        VM (abcd-abcd-abcd): 'name label here'
    """
    if not CONF.verbose:
        return
    uuid = obj["uuid"]
    try:
        name_label = obj["name_label"]
    except KeyError:
        name_label = ""
    msg = locals() % "%(obj_type)s (%(uuid)s) '%(name_label)s'"
    indent = " " * spaces_per_indent * indent_level
    print "".join([indent, msg])
dataset/ETHPy150Open openstack/nova/tools/xenserver/vm_vdi_cleaner.py/print_xen_object/swapped operands of `%`