def print_addon_details(addon):
    """
        Print addon details.
    """
    if has_str_format:
        print '{0:25}: {1}'.format('Addon', addon['addon_option']['name'])
        if 0 > len(addon['settings']):
            print '   \n Settings'
            for key, value in addon['settings'].items():
                print '   {0:25}: {1}'.format(key, value)
    else:
        print '%-25ls: %s' % ('Addon', addon['addon_option']['name'])
        if len(addon['settings']) > 0:
            print '   \n Settings'
            for key, value in addon['settings'].items():
                print '   %-25ls: %s' % (key, value)
dataset/ETHPy150Open cloudControl/cctrl/cctrl/output.py/print_addon_details/swapped operands of `>`