src/dirbs/cli/prune.py
def _warn_about_prune_all(prune_all, logger):
    """
    Function to print out warning about setting all in production.

    :param prune_all: prune all flag
    :param logger: dirbs logger obj
    """
    if prune_all is not False:
        logger.warning('*************************************************************************')
        logger.warning('WARNING: --prune_all option passed to dirbs-prune blacklist')
        logger.warning('*************************************************************************')
        logger.warning('')
        logger.warning('This should not be done in a production DIRBS deployment for the following reasons:')
        logger.warning('')
        logger.warning('1. All the IMEI falling in the specified pruning period will be pruned from blacklist')
        logger.warning('   irrespective of any condition specified, all the previously blacklisted IMEIs will now')
        logger.warning('   be removed from blacklist and allowed on network to operate.')
        logger.warning('')

    Function to print out warning about setting all in production.

    :param prune_all: prune all flag
    :param logger: dirbs logger obj
    
Function to print out warning about setting all in production.
Function to print out warning about setting all in production .
def _warn_about_prune_all(prune_all, logger):
    if prune_all is not False:
        logger.warning('*************************************************************************')
        logger.warning('WARNING: --prune_all option passed to dirbs-prune blacklist')
        logger.warning('*************************************************************************')
        logger.warning('')
        logger.warning('This should not be done in a production DIRBS deployment for the following reasons:')
        logger.warning('')
        logger.warning('1. All the IMEI falling in the specified pruning period will be pruned from blacklist')
        logger.warning('   irrespective of any condition specified, all the previously blacklisted IMEIs will now')
        logger.warning('   be removed from blacklist and allowed on network to operate.')
        logger.warning('')
def _warn_about_prune_all ( prune_all , logger ) : if prune_all is not False : logger . warning ( '*************************************************************************' ) logger . warning ( 'WARNING: --prune_all option passed to dirbs-prune blacklist' ) logger . warning ( '*************************************************************************' ) logger . warning ( '' ) logger . warning ( 'This should not be done in a production DIRBS deployment for the following reasons:' ) logger . warning ( '' ) logger . warning ( '1. All the IMEI falling in the specified pruning period will be pruned from blacklist' ) logger . warning ( '   irrespective of any condition specified, all the previously blacklisted IMEIs will now' ) logger . warning ( '   be removed from blacklist and allowed on network to operate.' ) logger . warning ( '' )
Function to print out warning about setting all in production.
Function to print out warning about setting all in production .
"""
    Function to print out warning about setting all in production.

    :param prune_all: prune all flag
    :param logger: dirbs logger obj
    """
prune_all
prune all flag
prune all flag
logger
dirbs logger obj
dirbs logger obj