def print_addons(addons):
    """
       Print all available addons.
    """
    if has_str_format:
        for addon in addons:
            print '\nAddon: {0}'.format(addon['name'])
            for option in addon['options']:
                print '   {0}'.format(option['name'])
    else:
        for addon in addons:
            print (addon['name']) % '\nAddon: %s'
            for option in addon['options']:
                print '   %s' % option['name']
dataset/ETHPy150Open cloudControl/cctrl/cctrl/output.py/print_addons/swapped operands of `%`